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,717 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?????? – ????

Leave a Reply