SyntaxHighlighter Evolved


As seen on

SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without having to escape the code or anything. It uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev to do the highlighting and supports all of the package’s parameters via shortcode attributes.

For a list of supported languages (most widely used languages are supported), see the support document.

Example Code Output:

Note that there are various different color schemes available.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>PHP Code Example</title>
	<h1>PHP Code Example</h1>

	<p><?php echo 'Hello World!'; ?></p>

	<p>This line is highlighted.</p>

	<div class="foobar">
		This	is	an
		example	of	smart

	<p><a href="">WordPress</a></p>

If you prefer, you can hide the line numbering and other UI stuff with the “light” mode, for example:

[php light="true"]your code here[/php]

There are many other parameters and defaults you can control via the Settings page or the shortcode parameters. Full details and instructions are located at the bottom of the Settings page.



This plugin is available on GitHub. Issues, patches, and pull requests are welcome.

1,762 thoughts on “SyntaxHighlighter Evolved

  1. Pingback: 4 Best Code/Syntax Highlighting Plugins for WordPress | learningcms

  2. Pingback: Add code to wordpress blog | Alans Wiki

  3. Pingback: WordPressでコードを美しく表示する | Dr.山本の疫学研究入門

  4. It don’t work here. Trying to get some php highlighting nothing happends. The


    are hidden in the display, so I suppose that something was recognised. But with or without the tags, de display is the same. Tell me where is the error here :

    $my_var = "Hello World !" ;
    echo $my_world :
  5. Also seeing it broken – Code on this developer page is broken just as it is on my site – So at least I know its not me using it wrong. Its been 3 weeks since the first feedback of a problem. It would be nice to see the developer comment and acknowledge that its is being worked on.

  6. Pingback: Wordpress/Linux CLI Notes Engine –

Leave a Reply