Simple yet elegant syntax or code highlighter based on highlight.js. It allows you to add…
Using it will be as straightforward as adding a replacement Vaaky Highlighter Sourcecode block (Gutenberg) and insert the code that you wish to highlight: Vaaky Highlighter takes care of the rest!
Here is the demo page of all the supported themes.
Automatic installation is that the best choice — WordPress can handle the file transfer, and you won’t have to be compelled to leave your browser.
Having issue? Check the WordPress codex contains instructions on how to do this here.
It uses Highlight.js
Currently, it supports 25 themes out of which 16 are the dark theme which includes Monokai (Sublime), Visual Studio, GitHub Dark, Android Studio, etc. and 9 are the light themes which include Github, StackOverflow, Google Code, etc.
In that case, do not select any language from dropdown, highlightjs will auto-detect the language. If it still didn’t work you can request for a feature request
Yes, it will work in WordPress Classic Editor. You have to add it in the form of shortcode, like this
[vaakyHighlighterCode lang="php"] Write your code here.[/vaakyHighlighterCode].
If you know the abbreviation of the language then you can provide in
lang attribute like php or js or cpp else ignore the attribute all together plugin will auto-detect the language and will highlight based on that.
Plugin Settings Page
Visual Studio 2015 Theme: PHP Snippet
Visual Studio 2015 Theme: YAML Snippet
Sublime (Monokai) Theme: YAML Snippet
Sublime (Monokai) Theme: PHP Snippet with Scrollbar
Sublime (Monokai) Theme: PHP Snippet with Line Wrap