Wordpress plugins
Enlighter – Customizable Syntax Highlighter

Enlighter – Customizable Syntax Highlighter

Version : 3.5
Tested up to : 4.8.2
Number of download : 54958
Author : Andi Dittrich

Screenshots

Enlighter – Customizable Syntax Highlighter
Enlighter – Customizable Syntax Highlighter
Enlighter – Customizable Syntax Highlighter
Enlighter – Customizable Syntax Highlighter

Enlighter is a free, easy-to-use, syntax highlighting tool for WordPress. It’s build in PHP and uses the MooTools(Javascript) based EnlighterJS to provide a beautiful code-appearance. Using it can be as simple as selecting an editor style or adding shortcode around your scripts which you want to highlight and Enlighter takes care of the rest. An easy to use Theme-Customizer is included to modify the build-in themes without any css knowlegde! It also supports the automatic creation of tab-panes to display code-groups together (useful for multi-language examples – e.g. html+css+js) Theme Demo – Language Examples Plugin Features Support for all common used languages including powerful generic highlighting Full Visual-Editor (TinyMCE) Integration (Admin Panel + Frontend) Theme Customizer including LIVE Preview Mode Inline Syntax Highlighting Tab-Indentation mode to align code with the tab key (single line and block selection) Markdown fenced code blocks bbPress shortcode + markdown code blocks support Shortcodes within content, comments and widgets Easy to use Text-Editor mode through the use of Shortcodes and QuickTags Advanced configuration options (CDN usage, ..) are available within the options page. Supports code-groups (displays multiple code-blocks within a tab-pane) Extensible language and theme engines – add your own one. Simple CSS based themes Integrated CSS file caching (suitable for high traffic sites) Standalone Shortcode-Processor to avoid wpautop filter issues in Text-Editor Mode Webfont Loader to add missing Monospace Fonts to your website Tutorials and Examples Enlighter Visual Editor Usage – Howto add Code Snippets to your posts and pages Enlighter Markdown Usage – Howto use Markdown fenced codeblocks Enlighter Visual Editor Live-Demo Supported Languages (build-in) Click to view Language/Theme Examples AVR Assembly Generic Assembly C CSS C# C++ Cython Diff Generic HTML Ini JSON Java Javascript Kotlin LUA MarkDown Matlab NSIS PHP Python RAW Ruby Rust SQL Squirrel Shell VHDL XML Shortcode Quickstart Example Highlight javascript code (theme defined on your settings page) [js] window.addEvent('domready', function(){ console.info('Hello Enlighter'); }); [/js] Inline Syntax Highlighting with Shortcode Lorem ipsum dolor sit amet, [js]window.alert('Hello World');[/js] consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Codegroup Example Display multiple codes within a tab-pane. You can define a custom tab-pane title for each snippet if you want. [codegroup] [js tab="Javascript Message"] window.addEvent('domready', function(){ // display string on console console.info('Hello Enlighter'); // show element $('#myelement').show(); }); [/js] [html] <div id="myelement"> INITIALIZATION START </div> [/html] [css tab="Styling"] #myelement{ color: #cc2222; padding: 15px; font-size: 20px; text-align: center; } [/css] [/codegroup] Legacy Example It’s also possible to use the plugin with legacy shortcode (disabled language shortcodes) [enlighter lang="js"] window.addEvent('domready', function(){ // display string on console console.info('Hello Enlighter'); // show element $('#myelement').show(); }); [/enlighter] Translations (I18n) Please keep in mind that not all translations are up to date. You are welcome to contribute! English (default) German (de_DE by Andi Dittrich) Serbo-Croatian (sr_RS by Borisa Djuraskovic from webhostinghub.com) Related Links Enlighter Plugin Docs + Tutorials Enlighter Plugin on GitHub EnlighterJS Documentation Compatibility All browsers supported by MooTools (enabled Javascript required) and with HTML5 capabilities for “data-” attributes are compatible with Enlighter. It’s possible that it may work with earlier/other browsers. Generally Enlighter (which javascript part EnlighterJS is based on MooTools Javascript Framework) should work together with jQuery in noConflict Mode – when you are using jQuery within your WordPress Theme/Page you have to take care of it! Chrome 10+ Safari 5+ Internet Explorer 6+ Firefox 2+ Opera 9+

Download now