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.

[php htmlscript=”true” highlight=”12″]<!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>[/php]

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

[code light=”1″][[php light="true"]your code here[/php]][/code]

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

  1. Pingback: WordPress??????SyntaxHighlighter?????? | BEN

  2. Pingback: PowerShellStation.com update | PowerShell Station

  3. Pingback: Adam's Technology Insights » Blog Archive » WordPress Syntax Highlighting Plugin

  4. Pingback: 40+ essential WordPress plugins | Artsinweb

  5. Pingback: ???WordPress??????SyntaxHighlighter??????

  6. Pingback: 40+ essential WordPress plugins | E-Tend

  7. Pingback: ??????WordPress???????????? | d.takamiya's blog

  8. Pingback: Top 15 wordpress 2.7.1 plugins | Tom's Blog

  9. Pingback: Writing Code in Your Posts | Webdzins

  10. Pingback: Moving from Blogger to Wordpress | My CMS

  11. Pingback: Massimiliano Sibilia - Web, Grafica e molto altro... SyntaxHighlighter Evolved: come incorporare codice sorgente nei post/pagine » Massimiliano Sibilia - Web, Grafica e molto altro...

  12. Pingback: WordPress blog için gerekli 10 eklenti | Teknoloji Blogu

  13. Pingback: WordPress????????? | OD?memo

  14. Pingback: WordPress????????? | OD?memo

  15. Pingback: WordPress????????? | OD?memo

  16. Pingback: ??????????Wordpress??????????? | GeekStory

  17. Alex,
    Love the plugin! I’ve come across a bug – or at least a problem with how it works with Pinterest code. I’ve narrowed it down to this plugin on my blog – KimJoyFox.com/blog – by deactivating and reactivating the plugins. The problem is when you have this plugin installed, neither the added Pinterest button (added by code into the page) or the Chrome browser Pinterest addon will pin.
    After a little research, when I comment out this line:

    wp_register_script ( ‘syntaxhighlighter-core’, plugins_url(‘syntaxhighlighter/’ . $this->shfolder . ‘/scripts/shCore.js’), array(), $this->agshver );

    in the page : syntaxhighlighter/syntaxhighlighter.php

    the Pinterest button works again. Any thoughts? help?

  18. Pingback: Wordpress | Code schöner darstellen | Netzleben

  19. Pingback: Adding Third Party Brushes to SyntaxHighlighter Evolved in WordPress | Ruben Alamina

  20. Pingback: ? ???????????? ????? ????????? ? ???????????

      • Yes, current version is OK, and I’m using it with pleasure. But I asked because I’m going to install your plug-in on a few new blogs in the next few days, so I would be glad to have the latest version.
        Thanks.

  21. Pingback: syntax highlighter test | Probable Max Journal

  22. Pingback: Wordpress and GitHub Gist Embedding | Zoooot

  23. Pingback: ?????? ???? ? ????? ?????? | ? ???? ?? ?????

  24. Pingback: ??????SyntaxHighlighter Evolved?????

  25. Pingback: Which is best syntax highlighting plugins for my wordpres site | Anurag V Acharya

  26. Pingback: Basic Wordpress Plugins | Srini's Blog

  27. Pingback: ??·???

  28. Pingback: Now using SyntaxHighlighter | DevNotes

  29. Pingback: WordPress??????SyntaxHighlighter?????? – SinoSky

  30. Pingback: WordPress?????????????????? | VectPress

  31. Pingback: WordPress??????SyntaxHighlighter?????? | WordPress???

  32. Pingback: ?SyntaxHighlighter Evolved????????????? | Lifehack

  33. Pingback: ?SyntaxHighlighter Evolved????????????? | Lifehack

  34. Pingback: ?????? ????????????-?????????- | ??????10??????

  35. Pingback: Menampilkan Source Code di WordPress | MhdSyarif

  36. Pingback: Wrodpress???????SyntaxHighlighter Evolved « WuChangsong's Blog.

  37. Pingback: ??SyntaxHighlighter?????????? « ??????

  38. Pingback: Using: SyntaxHighlighter Evolved Shortcode Parameters - Darwinian Software

  39. Pingback: ?? ?? ??, ?? ?? ??, ?? ?? URL, ?? ??? ??, ?? ??, ?? ?? ??, ??? ?? ??

  40. Pingback: Los Mejores Plugins de WordPress en el 2013 | CreativaSfera

  41. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

  42. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

  43. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

  44. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

  45. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

  46. Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????

Comments are closed.