My Syntax Highlighter

Simple post syntax-highlighted code without losing it's formatting or making any manual changes. Supporting multiple languages, shortcodes and th

Author:Space X-Chimp (profile at wordpress.org)
WordPress version required:4.9
WordPress version tested:6.1
Plugin version:2.58
Added to WordPress repository:19-08-2016
Last updated:10-11-2022
Rating, %:88
Rated by:7
Plugin URI:https://github.com/ArthurGareginyan/my-syntax...
Total downloads:19 037
Active installs:400+
plugin download
Click to start download

An easy to use, with intuitive interface, 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 plugin supports 13 languages, 16 shortcodes and 36 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

Get the PRO version now!

List of supported languages:

Click to view language examples. Highlighted with Default theme.

List of supported shortcodes:

  • [code][/code] – customizable shortcode
  • [php][/php]
  • [javascript][/javascript]
  • [js][/js]
  • [xml][/xml]
  • [html][/html]
  • [css][/css]
  • [scss][/scss]
  • [less][/less]
  • [sass][/sass]
  • [markdown][/markdown]
  • [perl][/perl]
  • [sql][/sql]
  • [mysql][/mysql]
  • [shell][/shell]

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 visit the translation page.

Minimum system requirements:

  • WordPress version 4.9 or higher.
  • PHP version 5.6 or higher.
  • MySQL version 5.0 or higher.

Recommended system requirements:

  • WordPress version 5.0 or higher.
  • PHP version 7.0 or higher.
  • MySQL version 5.6 or higher.

Contribution

Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:

“My Syntax Highlighter” is one of the own software projects of Space X-Chimp.

License

This plugin is licensed under the GNU General Public License, version 3 (GPLv3) and is distributed free of charge.
Commercial licensing (e.g. for projects that can’t use an open-source license) is available upon request.

Credits

Links