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,746 thoughts on “SyntaxHighlighter Evolved

  1. Pingback: The Top 100 WordPress Plugins For Your Site | Bucur Blog

  2. Pingback: ????? – Lenix Blog

  3. Pingback: Writing Code in Your Posts | T? h?c ti?ng Anh và vi tính

  4. Pingback: WordPress??????SyntaxHighlighter?????? | ????

  5. Pingback: SyntaxHighlighter Evolved???? – ????

  6. Pingback: WordPress??????SyntaxHighlighter?????? | IT??

  7. Pingback: WordPress??????SyntaxHighlighter?????? | ???

  8. Pingback: Wordpress SyntaxHighlighter Evolved eklentisi – Türkçe kaynak

  9. Pingback: Writing Code in Your Posts | WordPress World

  10. Hi! The plugin works beautifully for me on pages, but I have not been able to get it to highlight code in posts. Any suggestions?

      • Good call. I’m working with a pretty highly-customized child theme, and when I switch to the parent theme, the problem goes away. That gives me a good starting point to troubleshoot. I’ll share if I figure out what’s causing the issue in the child theme. Thanks!

  11. Pingback: Wordpress Code Display

  12. Pingback: Menuliskan Baris Perintah dalam WordPress –

  13. Hi, how do I get my indenture preserved in my code? I thought I had tabs (in vim) but they’ve >poof< and I can' hard-put spaces in, either. This is driving me insane.

  14. Pingback: Teddy Critic WordPress Plugin – Dd's Portfolio

  15. Pingback: Welche WordPress-Plugins nutze ich?

  16. Thanks for the nice plugin Alex! Just want to let you know it works very well on my blog, thing i noticed is that the link ‘Download from ( downloads)’ on this page isn’t working correctly. It redirects me to this page, i think it need to go to the page right ?

    Cheers Jim

  17. Pingback: How to Add Code Examples to Your Wordpress PostsABWAIN

Leave a Reply