With support for the new block editor in WordPress 5.0!
SyntaxHighlighter Amplified allows you to easily post syntax-highlighted code to your site without losing its formatting or making any manual changes. It uses the
highlight.php package by Geert Bergman to render code on the server-side so it has no depedencies on extrenal Javascript libraries thus is compatible with AMP pages.
For a live demo, see
this demo page.
For a list of supported languages (most widely used languages are supported), see the
WordPress.com support document.
Development of this plugin is
on GitHub. See
list of current issues with the plugin. Please feel free to file any additional issues or requests that you may come across.
Pull requests are welcome.
Translation of the plugin into different languages is on the
translation page.
CREDITS
This is a fork of
SyntaxHighligher Evolved by
Alex Mills (Viper007Bond), which is also
available on WordPress.org. Copyright (c) 2018 Alex Mills. Licensed under GPL 2.0 or later.
highlight.php is released under the BSD 3-Clause License. Copyright © 2006-2013, Ivan Sagalaev (maniac@softwaremaniacs.org), highlight.js (original author). Copyright © 2013, Geert Bergman (geert@scrivo.nl), highlight.php