Simple post syntax-highlighted code using the EnlighterJS MooTools Plugin.
You have to enable the full toolbar by clicking on the Show/Hide Kitchen Sink button (last icon on the toolbar)
This feature requires WordPress 3.9 (new TinyMCE Version) - but you can still use shortcodes for inline highlighting!
The use of Shortcode is only recommended when working in Text-Mode. By switching to the Visual-Editor-Mode whitespaces (linebreaks, indents, ..) within the shortcode will get removed by the editor - using Visual-Editor mode will avoid such problems.
To enable the Theme-Customizer you have to select the theme named Custom as default theme. The Theme-Customizer will appear immediately.
Yes! since version 1.5 all shortcodes support the attribute
Shortcode Example: highlight the lines 2,3,4,8 of the codeblock
[js highlight="2-4,8"]....some code..[/js]
The complete EnlighterJS project can be found on GitHub
Yes you can! - The simplest way is to download the EnlighterJS CSS sources and modify one of the standard themes.
If you are already using MooTools on your page, you have to disable the automatic inclusion of MooTools by Enlighter. Goto the Enlighter options page -> Advanced and select "Not include" as MooTools source. Note: EnlighterJS requires MooTools > 1.4
The W3C Validator will throw an warning when using metadata based config as initialization method, because of the unknown metatag-name EnlighterJS. To avoid this warning you can select Script based config on the
Write a message to Andi Dittrich (andi DOT dittrich AT a3non DOT O R G) or open a New Issue on GitHub
Requires: 3.5 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-6
2 of 4 support threads in the last two months have been resolved.
Got something to say? Need help?