From 4ba77ba3fceb4fe7280a6e420848ec5bc0a784eb Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Thu, 23 Feb 2017 10:22:57 +0100 Subject: [PATCH] JavaScript highlighting --- docs/technical.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/technical.md b/docs/technical.md index f3d5248..edde70b 100644 --- a/docs/technical.md +++ b/docs/technical.md @@ -11,7 +11,9 @@ Finally, run one of the following commands in the cloned directory: In order to bootstrap the WebSlides you'll need to create a instance of it: -`const ws = new WebSlides();` +```javascript +const ws = new WebSlides(); +``` That'll make everything run without any hassle. @@ -24,7 +26,7 @@ WebSlides constructor accepts an object with options. | `autoslide` | `number` or `boolean` | `false` | Amount of milliseconds to wait to go to next slide automatically. | -``` +```javascript const ws = new WebSlides({ autoslide: false }); @@ -113,7 +115,7 @@ Those being: Almost every single feature of WebSlides is a plugin that can be overwritten and you are able to create your custom plugins. Just call `registerPlugin` (as seen above) **before creating** the instance: -``` +```javascript // Adding the constructor to WebSlides WebSlides.registerPlugin('myPlugin', MyPlugin);