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: ???????????????????????? | ???????webnohito

  2. Hello there, I am using SyntaxHighlighter Evolved on my buddypress website (http://www.geekclass.it) and i have made some changes in the code to make it bbpress-compatible, so now it works on bbpress forums and group forums in buddypress (if interested in these changes ask via email to info@geekclass.it or look here https://gist.github.com/3768678 in filters in function __construct()).

    Anyway, actually I have an issue that i can’t fix: SyntaxHighlighter Evolved changes double quotes and other symbols with their html codes like &quotes and &gt and so on in both bbpress forum and buddypress groups forum but, strangely, not in post and comments…I am still trying to subscribe to WordPress Codex to ask there but i can’t (don’t know why). Can i find help here? Thank you very much.

  3. Pingback: Fortran Brush for SyntaxHighlighter Evolved :: Jonathan Landrum

  4. Pingback: Code im Blog | Digitales Umfeld

  5. Pingback: Wordpress??????SyntaxHighlighter?????? | "???"???

  6. is there any way, how i can run it on my web for all WITHOUT loading all brushes? I got from previous CMS the standard syntax of this highlighter:

    [php][/php] something [php][/php]

    so i would like to load PHP brushes when needed, css brushes when needed etc.

  7. How can I display the code with tag [c][/c]?
    for example this code:
    [cpp]
    counter[c]++;
    [/cpp]
    It will display as
    counter1++;

    the tag [php][/php] also has this problem.
    [cpp]
    counter[php]++;
    [/cpp]
    also will become
    counter1++;

    the first one will be used in many code… could you tell me how to solve this problem?

  8. I noticed a validation issue with the plugin that appears in your site as well.
    Error Line 66, Column 87: Bad value syntaxhighlighter-version for attribute name on element meta: Keyword syntaxhighlighter-version is not registered.

    …d=”syntaxhighlighteranchor” name=”syntaxhighlighter-version” content=”3.1.3″ />

    My guess is that it is the content tag and the error massage is just unclear in the validator

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.viper007bond.com%2Fwordpress-plugins%2Fsyntaxhighlighter%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

  9. Pingback: Lista top 100 wordpress dodataka | X-Te.Me - Tehnologija - IT Portal

  10. Pingback: DynStatic – Wordpress RouterOS Syntax Highlighting

  11. Pingback: Plugins útiles para Wordpress « Un informático en el iC1

  12. Pingback: ???????html?php??????????????????????SyntaxHighlighter Evolved? | ??????

  13. Pingback: Plugin para mostrar códigos fuente en Wordpress

  14. Pingback: Code Blogueur » Des Plugins pour Wordpress

  15. Pingback: Blogging with Org Mode and org2blog | Serious Awesomeness

  16. Pingback: ???? – wordpress???10???

  17. Pingback: Sub capot? - breakfix.ro

  18. Pingback: Wordpress ??100 plugins | ????

  19. Pingback: ??? ?????? ????? ????????? ???? 2012 | ???? ????? ??????

  20. Pingback: El Top 100 mejores plugins para WordPress | Blog de Hosting WordPress

  21. Pingback: Plugins jag använder på den här webbplatsen - Johan Ahlbäck

  22. Pingback: WordPress DIY | ?????' Page

  23. Pingback: ?????-??- » ????pulgin

  24. Pingback: SyntaxHighlighter Bash Edits | Seth Miller dot org

  25. Pingback: 40+ essential WordPress plugins | Webdesigner Depot

  26. Pingback: 40+ essential WordPress plugins : Coders lab

  27. Pingback: 40+ essential WordPress plugins | AsterHost

  28. Pingback: 40+ essential WordPress plugins | 4 Web Design

  29. Pingback: 40+ essential WordPress plugins | Blue Sparrow Media

  30. Pingback: Transforme Communications | 40+ essential WordPress plugins

  31. Pingback: 40+ essential WordPress plugins | High Cross Digital

  32. Pingback: Patelot Graphic 27+ Best Wordpress Plugins to Highlight Code - Patelot Graphic

  33. Pingback: 27+ Best Wordpress Plugins to Highlight Code - Patelot Graphic

  34. Pingback: 40+ essential WordPress plugins Titolab

  35. Pingback: ?????? » ??????Wordpress?????44????

  36. Pingback: Every Tutorials | Tutorials about… everything

  37. Pingback: ??????WordPress?????44????

  38. Pingback: weDesign SA – 40+ essential WordPress plugins

  39. Pingback: 40+ essential WordPress plugins | VCDMA

  40. Pingback: Adding syntax highlighter to Wordpress | Temp3.net Web Design

  41. Pingback: Don’t eat yellow snow. | Nachtlog

  42. I’ve been using this for a while. I removed all my posts because of spam and just recently re-published them. For some reason now it’s taking all of my quotes and changing the to html. &quote; etc… wth?

  43. Pingback: phpr.org WordPress temas?!

  44. Pingback: Migracja z BlogEngine.NET do WordPress | Maciej Aniserowicz o programowaniu

Comments are closed.