From 060c8464b300786b48f31139acc46ec4d1734247 Mon Sep 17 00:00:00 2001 From: Rubens Mariuzzo Date: Tue, 26 Jul 2016 22:08:27 -0400 Subject: [PATCH] =?UTF-8?q?Syntax=20highlighting=20added=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/readme.md b/readme.md index 486b4fd..af92252 100644 --- a/readme.md +++ b/readme.md @@ -29,28 +29,33 @@ Manual: `$(selector).mCustomScrollbar();` [Browserify](http://browserify.org/): - var $ = require('jquery'); - require('malihu-custom-scrollbar-plugin')($); +```js +var $ = require('jquery'); +require('malihu-custom-scrollbar-plugin')($); +``` [webpack](https://webpack.github.io/): - npm install imports-loader - npm install jquery-mousewheel - npm install malihu-custom-scrollbar-plugin - - module.exports = { - module: { - loaders: [ - { test: /jquery-mousewheel/, loader: "imports?define=>false&this=>window" }, - { test: /malihu-custom-scrollbar-plugin/, loader: "imports?define=>false&this=>window" } - ] - } - }; - - var $ = require('jquery'); - require("jquery-mousewheel")($); - require('malihu-custom-scrollbar-plugin')($); - +```shell +npm install imports-loader +npm install jquery-mousewheel +npm install malihu-custom-scrollbar-plugin +``` + +```js +module.exports = { + module: { + loaders: [ + { test: /jquery-mousewheel/, loader: "imports?define=>false&this=>window" }, + { test: /malihu-custom-scrollbar-plugin/, loader: "imports?define=>false&this=>window" } + ] + } +}; + +var $ = require('jquery'); +require("jquery-mousewheel")($); +require('malihu-custom-scrollbar-plugin')($); +``` Requirements ------------------------- @@ -79,4 +84,4 @@ http://opensource.org/licenses/MIT Donate ------------------------- -https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYJ5G65M6ZA28 \ No newline at end of file +https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYJ5G65M6ZA28