SyntaxHighlighter Evolved

Description:

As seen on WordPress.com.

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 WordPress.com support document.

Example Code Output:

Note that there are various different color schemes available.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>PHP Code Example</title>
</head>
<body>
	<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
		tabs.
	</div>

	<p><a href="http://wordpress.org/">WordPress</a></p>
</body>
</html>

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.

Download:

GitHub:

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

https://github.com/Viper007Bond/syntaxhighlighter

1,750 thoughts on “SyntaxHighlighter Evolved

  1. Pingback: 10 ????? ???????? ????????

  2. Pretty cool plugin Alex. I was looking for something a bit different but I started using yours and I love it. Thanks a lot.

  3. Pingback: Markdown?WordPress???? | hsk?blog

  4. Great plugin thanks and I am straight away going to install it because we sometimes need to paste code on your blog so this plugin does all the work

  5. Pingback: SyntaxHighlighter Evolved | Tevac Network

  6. Pingback: ????????? ??????????

  7. Pingback: Viktor H. Morales | WordPress Shortcode: Compartir jsFiddle y PasteBin en tu blog

  8. Pingback: Zwei frische Lösungen für die Code-Darstellung in WordPress - Dr. Web

  9. Pingback: Two Fresh Solutions for Code Display in WordPress | NOUPE

  10. Pingback: WordPress??????SyntaxHighlighter??????[?] - ???????

  11. Pingback: [WordPress] Syntaxhighlighter evolved ??????? | ???????

  12. On one of my blogs, I’m seeing a question mark next to the first line of code that uses SyntaxHighlighter Evolved. Clicking the question mark pops up a box asking for donations for Alex Gorbatchev. The version of SyntaxHighlighter referenced is 3.0.83. I’ve read that Alex has a newer version of the code that doesn’t ask for donations. Do you plan to update SyntaxHighlighter Evolved to the newest version of Alex’s code? (I believe it is 4.x.)

  13. Pingback: WordPress??? – ???

  14. Pingback: WordPress Anpassungen – Beitragsbild, Startseite und Quellcode-Anzeige – NOVATREND Blog

  15. Pingback: Useful Wordpress Administrator Plugins - John Ryan Design

  16. Pingback: SyntaxHighlighter Evolved: ??? – jdev.date

  17. Pingback: WordPress??????SyntaxHighlighter?????? – ????

  18. Pingback: Menuliskan Baris Perintah dalam WordPress | chaplux.web.id

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

  20. Pingback: ????? – Lenix Blog

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

  22. Pingback: WordPress??????SyntaxHighlighter?????? | ????

  23. Pingback: SyntaxHighlighter Evolved???? – ????

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

  25. Pingback: WordPress??????SyntaxHighlighter?????? | ???

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

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

      • 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!

  28. Pingback: Wordpress Code Display

  29. Pingback: Menuliskan Baris Perintah dalam WordPress – chaplux.web.id

  30. 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.

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

  32. Pingback: Welche WordPress-Plugins nutze ich?

  33. 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 WordPress.org ( downloads)’ on this page isn’t working correctly. It redirects me to this page, i think it need to go to the wordpress.org page right ?

    Cheers Jim

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

  35. Pingback: WordPress: Syntaxhighlighter – IT Kosmopolit

  36. Hi, Alex, I using Syntaxhighlighter Envolved plugin, its great. But i got some problem when adding another plugin. The Syntax Highlighter is gone when I activated AddToAny plugin on my site. Wish I can use both plugin.
    .
    Thanks Alex

  37. Pingback: code test | ?????

Leave a Reply