Description
WordPress Plugin: My Syntax Highlighter PRO
“My Syntax Highlighter PRO” is a premium WordPress plugin that gives you the ability to easily and safely embed a syntax-highlighted source code within pages and posts on your WordPress website without losing its formatting. This is a “PRO” version of the plugin “My Syntax Highlighter”. More features, more power.
This plugin supports 156 programming languages, 125 shortcodes and 64 themes. The syntax highlighting feature is implemented using the CodeMirror library.
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. Syntax highlighting is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what they are looking for.
This plugin also uses standalone Shortcode-Processor to prevent WordPress from converting newlines to HTML paragraphs, replacing apostrophes with typographic quotes and so on.
This plugin is just plug and play, no tedious configurations or hacks, just install, enable and start using your new shortcodes.
Features
- Lightweight and fast
- Secure code with using clear coding standards
- Intuitive interface with many settings
- Cross browser compatible (work smooth in any modern browser)
- Compatible with all WordPress themes
- RTL compatible (right to left)
- Translation ready
Key features include
- Standalone Shortcode-Processor
- Code syntax highlighting
- Line numbering
- Dollar sign before line
- 36 Themes
- 13 Programming languages
- 15 Shortcodes
- Allow shortcodes in the text widget
- And much, much more!
PRO features include
- 64 Themes (all provided themes from CodeMirror)
- 156 Programming languages (all provided languages from CodeMirror)
- 125 Shortcodes
- Programming language selection option
- Loading CodeMirror files on pages only when needed
- Line wrapping
- No ads on the settings page
- Well documented
List of supported languages
Click to view language examples. Highlighted with Default theme.
- APL → see example
- ASN.1 → see example
- Asterisk dialplan → see example
- Brainfuck → see example
- C, C++, C# → see example
- CMake → see example
- COBOL → see example
- CSS → see example
- Ceylon → see example
- Clojure → see example
- Closure Stylesheets (GSS) → see example
- CoffeeScript → see example
- Common Lisp → see example
- Crystal → see example
- Cypher → see example
- Cython → see example
- D → see example
- DTD → see example
- Dart → see example
- Django → see example
- Dockerfile → see example
- Dylan → see example
- EBNF → see example
- ECL → see example
- Eiffel → see example
- Elm → see example
- Erlang → see example
- F# → see example
- FCL → see example
- Factor → see example
- Forth → see example
- Fortran → see example
- Gas (AT&T-style assembly) → see example
- Gherkin → see example
- GitHub-flavour → see example
- Go → see example
- Groovy → see example
- HAML → see example
- HTML embedded (JSP, ASP.NET) → see example
- HTML mixed-mode → see example
- HTTP → see example
- Handlebars → see example
- Haskell → see example
- Haxe → see example
- IDL → see example
- JSX → see example
- Java → see example
- JavaScript → see example
- Jinja2 → see example
- Julia → see example
- Kotlin → see example
- LESS → see example
- Literate → see example
- LiveScript → see example
- Lua → see example
- MUMPS → see example
- Markdown → see example
- Mathematica → see example
- Modelica → see example
- MscGen → see example
- N-Triples/N-Quads → see example
- NSIS → see example
- Nginx → see example
- OCaml → see example
- Objective C → see example
- Octave → see example
- Oz → see example
- PEG.js → see example
- PGP (ASCII armor) → see example
- PHP → see example
- Pascal → see example
- Perl → see example
- Pig Latin → see example
- PowerShell → see example
- Properties files → see example
- ProtoBuf → see example
- Pug → see example
- Puppet → see example
- Python → see example
- Q → see example
- R → see example
- RPM → see example
- Ruby → see example
- Rust → see example
- SAS → see example
- SCSS → see example
- SPARQL → see example
- SQL → see example
- Sass → see example
- Scala → see example
- Scheme → see example
- Shell → see example
- Sieve → see example
- Slim → see example
- Smalltalk → see example
- Smarty → see example
- Solr → see example
- Soy → see example
- Spreadsheet → see example
- Squirrel → see example
- Stylus → see example
- Swift → see example
- TOML → see example
- TTCN Configuration → see example
- TTCN → see example
- Tcl → see example
- Textile → see example
- Tiddlywiki → see example
- Tiki wiki → see example
- Tornado → see example
- Turtle → see example
- Twig → see example
- VB.NET → see example
- VBScript → see example
- VHDL → see example
- Velocity → see example
- Verilog/SystemVerilog → see example
- Vue.js app → see example
- Web IDL → see example
- XML/HTML → see example
- XQuery → see example
- YAML frontmatter → see example
- YAML → see example
- Yacas → see example
- Z80 → see example
- diff → see example
- mIRC → see example
- mbox → see example
- reStructuredText → see example
- sTeX, LaTeX → see example
- troff → see example
List of supported shortcodes
- [code][/code] - customizable shortcode
- [apl][/apl]
- [asciiarmor][/asciiarmor]
- [asn.1][/asn.1]
- [asterisk][/asterisk]
- [brainfuck][/brainfuck]
- [clike][/clike]
- [clojure][/clojure]
- [cmake][/cmake]
- [cobol][/cobol]
- [coffeescript][/coffeescript]
- [commonlisp][/commonlisp]
- [crystal][/crystal]
- [css][/css]
- [cypher][/cypher]
- [d][/d]
- [dart][/dart]
- [diff][/diff]
- [django][/django]
- [dockerfile][/dockerfile]
- [dtd][/dtd]
- [dylan][/dylan]
- [ebnf][/ebnf]
- [ecl][/ecl]
- [eiffel][/eiffel]
- [elm][/elm]
- [erlang][/erlang]
- [factor][/factor]
- [fcl][/fcl]
- [forth][/forth]
- [fortran][/fortran]
- [gas][/gas]
- [gfm][/gfm]
- [gherkin][/gherkin]
- [go][/go]
- [groovy][/groovy]
- [haml][/haml]
- [haskell][/haskell]
- [haskell-literate][/haskell-literate]
- [haxe][/haxe]
- [html][/html]
- [htmlembedded][/htmlembedded]
- [htmlmixed][/htmlmixed]
- [http][/http]
- [idl][/idl]
- [javascript][/javascript]
- [jinja2][/jinja2]
- [js][/js]
- [jsx][/jsx]
- [julia][/julia]
- [less][/less]
- [livescript][/livescript]
- [lua][/lua]
- [markdown][/markdown]
- [mathematica][/mathematica]
- [mbox][/mbox]
- [mirc][/mirc]
- [mllike][/mllike]
- [modelica][/modelica]
- [mscgen][/mscgen]
- [mumps][/mumps]
- [mysql][/mysql]
- [nginx][/nginx]
- [nsis][/nsis]
- [ntriples][/ntriples]
- [null][/null]
- [octave][/octave]
- [oz][/oz]
- [pascal][/pascal]
- [pegjs][/pegjs]
- [perl][/perl]
- [php][/php]
- [pig][/pig]
- [powershell][/powershell]
- [properties][/properties]
- [protobuf][/protobuf]
- [pug][/pug]
- [puppet][/puppet]
- [python][/python]
- [q][/q]
- [r][/r]
- [rpm][/rpm]
- [rst][/rst]
- [ruby][/ruby]
- [rust][/rust]
- [sas][/sas]
- [sass][/sass]
- [scheme][/scheme]
- [scss][/scss]
- [shell][/shell]
- [sieve][/sieve]
- [slim][/slim]
- [smalltalk][/smalltalk]
- [smarty][/smarty]
- [solr][/solr]
- [soy][/soy]
- [sparql][/sparql]
- [spreadsheet][/spreadsheet]
- [sql][/sql]
- [stex][/stex]
- [stylus][/stylus]
- [swift][/swift]
- [tcl][/tcl]
- [textile][/textile]
- [tiddlywiki][/tiddlywiki]
- [tiki][/tiki]
- [toml][/toml]
- [tornado][/tornado]
- [troff][/troff]
- [ttcn][/ttcn]
- [ttcn-cfg][/ttcn-cfg]
- [turtle][/turtle]
- [twig][/twig]
- [vb][/vb]
- [vbscript][/vbscript]
- [velocity][/velocity]
- [verilog][/verilog]
- [vhdl][/vhdl]
- [vue][/vue]
- [webidl][/webidl]
- [xml][/xml]
- [xquery][/xquery]
- [yacas][/yacas]
- [yaml][/yaml]
- [z80][/z80]
List of supported themes
- 3024 day
- 3024 night
- ABCDEF
- Ambiance
- Ambiance mobile
- Ayu dark
- Ayu mirage
- Base16 dark
- Base16 light
- Bespin
- Blackboard
- Cobalt
- Colorforth
- Darcula
- Dracula
- Duotone dark
- Duotone light
- Eclipse
- Elegant
- Erlang dark
- Gruvbox dark
- Hopscotch
- Icecoder
- Idea
- Isotope
- Lesser dark
- Liquibyte
- Lucario
- Material
- Material darker
- Material ocean
- Material palenight
- MBO
- MDN-like
- Midnight
- Monokai
- Moxer
- Neat
- Neo
- Night
- Nord
- Oceanic next
- Panda syntax
- Paraiso dark
- Paraiso light
- Pastel on dark
- Railscasts
- Rubyblue
- Seti
- Shadowfox
- Solarized
- SSMS
- The matrix
- Tomorrow night bright
- Tomorrow night eighties
- TTCN
- Twilight
- Vibrant ink
- XQ dark
- XQ light
- Yeti
- Yonce
- Zenburn
Translation
This plugin is ready for translation and has already been translated into several languages. But If your language is not available then you can make one. It is also possible that not all existing translations are up-to-date or correct, so you are welcome to make corrections. Many of plugin users would be delighted if you share your translation with the community. Thanks for your contribution!
- English (default)
- Russian (translation by Milena Kiseleva)
- German (translation by Michael)
- Spanish (translation by Ramiro Garcés and Patricio Toledo)
- Dutch (translation by Peter Leenders)
- French (translation by Jean-Michel, Theophil Bethel and Hervé Bouzin)
If you want to help translate this plugin, please use the POT file that is included and placed in the languages
folder to create a translation PO file. Just send the PO file to us and we will include this translation within the next plugin update.