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.

Download:

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:

[tag light="true"]your code here[/tag]

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.

1,186 comments to SyntaxHighlighter Evolved

  1. Liam McCabe says:

    Great plugin Viper :)

    I have a few problems though:

    [ php html-script=true ] is not working for me :( It displays the php correctly but displays the html characters (“<"etc) as their entity names, this is when previewing. When I save as a draft, the symbols in the post box are then converted to their entity names. :(

    I don’t think any plugins are interfering, my plugins:

    Akismet
    Community Links Feed
    Contact Form 7
    SyntaxHighlighter Evolved
    Twitter Tools
    Wordpress Popular Posts
    WP-DBManager

    I don’t really want to deactivate any of them as I don’t want to lose any settings or styling (e.g Popular posts). However, if you definitely believe it could be one of these plugins interfering, then care to make a guess on which one? :)

    Thank you :)

    Liam

    wordpress 2.8.6
    php4

    • Viper007Bond says:

      The WordPress shortcode API doesn’t like dashes in it’s parameter names, so my plugin uses non-dashed versions, i.e. “htmlscript”.

      The preview issue may be related to WordPress 2.8.x as I’m unable to reproduce it on my blog (WordPress 2.9 beta). Since I’m unable to reproduce it, I’m going to assume it’s a WordPress bug that’s been fixed.

  2. @Mario Mariani and everyone having trouble with the Objective-C brush:

    I found the problem with the that particular brush (objc), it’s very easy to fix; download the proper brush file from this website:

    http://www.undermyhat.org/blog/wp-content/uploads/2009/09/shBrushObjectiveC.js

    The one currently bundled with the plugin has the wrong namespace… just that. Replace in your own installation this file:

    /wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushObjC.js

    with the one you downloaded (change the file name to the one used by the plugin) and reload your page. Voila!

    By the way, every time I upgrade the plugin in WP I have to re-install this file… for all of us iPhone bloggers this is a bummer :) could you please change this file so that the correct one is bundled? Thanks!

    Hope this helps!

    Adrian

  3. Liam McCabe says:

    Okay I have upgraded to WordPress v2.9 beta – 2 I have upgraded to php5 but still the problem persists :(

    Neither htmlscript=true or htmlscript=”true” – no highlighting and html entity names displayed

    html-script=true highlights php but still displays html entity names

    Symbols also converted to entity names in post box when draft saved :/

  4. [...] require escaping of the source code before posting, allows highlighting of elements and more. SyntaxHighlighter Evolved « My WordPress Plugins « Viper007Bond.com VN:F [1.7.7_1013]Rating: 0.0/10 (0 votes [...]

  5. Liam McCabe says:

    For me:

    On Displays:

    <strong><?php echo 'Hello world!'; ?></strong>

    Off Displays:

    <strong><?php echo 'Hello world!'; ?></strong> (with echo being pink and ‘hello world’ being blue

  6. Liam McCabe says:

    Grr I mean both times it displays the entity names & lt ; etc

  7. Viper007Bond says:

    Disable all other plugins, switch to the default theme, don’t use a desktop editor, etc. Basically eliminate all variables. ;)

  8. Emanuel says:

    hi, in safari (mac) the code areas are empty. i don’t have a clue why, in firefox the plugin works fine…

  9. [...] Aizatto’s SyntaxHiglighter Released Update: This plugin has been discontinued, I would recommend you use SyntaxHighlighter Evolved [...]

  10. [...] think I’m gonna stick onto this Clean-home theme and SyntaxHighlighter Evolved. They both working [...]

  11. Vlad Ghinea says:

    First of all thank you for this plugin. I was a user of wp-syntax but this one is better for me. But I have a question if you don’t mind. Every time I write the code it shows ok with no errors but in the editor window br / is added after each line. So if I want to make modifications to the html of my post and I update the post again I will have br / after each line. How can I get rid of this anomaly. I used php htmlscript=”true”.

  12. [...] SyntaxHighlighter Evolved definitely beats the many others that I attempted to use. Some didn’t work properly at all (whether with this theme or with the latest version of WP I do not know). ↩ [...]

  13. Liam McCabe says:

    Finally figured it out Viper :P

    When this code was present in the post, html entities were displayed:



    Strange, no? :S

  14. Hi Viper,

    Thanks for fixing the Objective-C brush!

    Cheers

  15. bundyxc says:

    Just noticed a bug with the most recent version. On my site, it adds the tags to the beginning and end of my codes.

    Input:

    <?php print 'Hello world'; ?>

    Output:

    <?php print 'Hello world'; ?>

    This can be seen on my site, which can be found at http://bundyxc.com, as well as the comment above (as the source code never mentioned the span tags). Also, you can see this bug if you look at your example post (at the top of the page), as it has span tags before and after your text.

    I suppose this could be just me (and my broswer), as nobody else had mentioned it… but it happened as soon as I updated from 2.3.3 to 2.3.5

  16. bundyxc says:

    Well, apparently it didn’t bug out in my comment. Strange. Anyway, everything on http://bundyxc.com/?p=95 is messed up, and you can also see an example on this page of it, right under where you say “Note that there are various different color schemes available.”

    Not sure of what’s actually triggering the problem.

  17. Azlan says:

    i’m using your latest version (2.3.5). but there have a parse error

    Parse error: syntax error, unexpected T_STRING in /htdocs/wp-content/plugins/syntaxhighlighter/syntaxhighlighter.php on line 808

  18. [...] excellent “SyntaxHighlighter Evolved” plugin from “Alex / Viper007Bond” (view his plugin page) that is in turned based on the JavaScript SyntaxHighlighter package from Alex Gorbatchev. I [...]

  19. simplemal says:

    Hi and thanks for your work.
    I have a WordPress Blog in Italy (sorry for my bad english) and I have tried to activate SyntaxHightlight Evolved.
    Click on Active and all look’s like nice and simple.
    But on my post it does not happen null.
    I have tried different declaration, but nothing is changed…
    Anyone have an idea because this happen?

    Look this:
    http://www.saggiamente.com/blog/2009/12/come-si-fa-ad-aggiungere-funzioni-a-quicklook-una-lista-dei-migliori-plugin/

    in the middle of the post I have write:

    qlmanage -r
  20. simplemal says:

    WOW, incredible! Here the code is functionally…
    I have write the same code in my post, but it appears nothing..
    [ bash ] code [ / bash ]

  21. simplemal says:

    That’s incredible. I’ve forgot this in my template!
    Thank you

  22. [...] Insa recent am gasit un plugin impresionant la capitolul formatare cod:  SyntaxHighlighter Evolved [...]

  23. [...] 2. Page Navigation ???????. 3. WPtouch 1.9.5 i phone????????. 4.SyntaxHighlighter Evolved ????????. ????????????????? [...]

  24. [...] Resulta que la vista con <pre> era demasiado precaria y además era un leseo gigante tener que cambiar todas las < y > por su equivalente en htmlentity, así que me puse a buscar algún plugin que hiciera esto automágicamente y me encontré con la agradable sorpresa de que existía SyntaxHighlighter Evolved. [...]

  25. Bahree says:

    Hi Alex, I just started using this plugin and it seems great. One quick issue I am seeing – when I post some C++ code the double quote (“) is being converted to " as you can see in the post here [1]. I know this is supported, but I don’t know why this is happening. Is this something in the theme I am using or something else – any ideas?

    Thanks,
    Amit.

    [1] – http://desigeek.com/blog/amit/2009/12/22/making-sense-of-primary-expression-error/

  26. DWORD says:

    If you don’t want to add extra languages why not make it load the languages from some specific folder and add the tag names according to file names?

    That way users don’t have to worry about loosing their custom syntaxes and you dont have to be bothered ever again on this request.

    Cheers!

  27. [...] ??????????SyntaxHighlighter Evolved SyntaxHighlighter Evolved ? XHTML , CSS , PHP , JavaScript , ActionScript , Perl ????????C+ ? C# ?????????????????????????? HTML ??????????????????????????????????????????????? [...]

  28. Mingao says:

    I finished localization files in Traditional Chinese, how should I send them to you?

  29. licream says:

    hi,??
    ??????????????? ?????????????????????????????????????
    ??????????
    thanks! very much.

  30. [...] ???????????, ?????????, ? wordpress ???????, [...]

  31. [...] Syntax High Lighter Plus est plus élaboré et convient aux furieux du code. Il fonctionne avec de nombreux langages de programmation et le formatage est plus fouillé à l’image d’un éditeur de code. [...]

  32. [...] trying several plugins, my choice, and what you see on this blog for syntax highlighting now is SyntaxHighlighter Evolved. « Mac Snow Leopard: .bash_profile take precedence over [...]

  33. Vladimir says:

    Hey man,

    How about making the plugin enumerate theme and brush files in the subdirectories and load them dynamically? This is so I don’t have to patch the plugin myself manually for my custom theme and brushes every time I upgrade.

    Thanks!

    • Viper007Bond says:

      Because then I’d have to parse the brush files to get their aliases. It’d also be bad on the filesystem and really slow having to read a directory on EVERY page load.

      How about you just use the existing theme and brush APIs instead? :)

  34. Narada says:

    Hi,

    I’ve just installed this plugin. However I’m not able to figure out a nice way to customise/override the style of the code block. I would like the font-size to be smaller. I would also like to change the background colour, add a border and change the font-family too. How I can apply these styles without hacking up the plugin or wordpress itself? Can I override the css for this plugin in any way (which imo should be a key feature)?

    Many thanks.

  35. Dat Tai says:

    Great plugin

    Thanks a lot

  36. Jan says:

    The Inline Java Script plugin will mess up your source code lines by displaying escaped HTML sequences if you’re using any Gorbatchev-based syntax highlighter. Just to let y’all know.

  37. I’ve installed the SyntaxHighlighter Evolved plugin on my blog at http://www.dennismadsen.com.

    I’m using Windows Live Writer to write my blog posts. I’ve downloaded this plugin for Windows Live Writer:
    http://sourcecodeplugin.codeplex.com/

    But when I post source code on the blog post by this plugin, the source code is inside a pre html-tag. The SyntaxHighlighter plugin is using eg.

    source code...

    shortcuts instead.

    What can I do?

  38. Eonil says:

    Hi. I have a suggestion. How about offering option to choose filtering tag name to <code> or ? I think <code> is most simple and more semantic as the spec of HTML on W3C. They suggested syntax like above for script of just this purpose.

    http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element

  39. Jesse says:

    Hi,

    I would first off like to say thanks for making a great plugin, I have it on a few sites and it works without flaw every time. My question, or more like a feature request would be to have an option in the settings to limit where it includes the scripts by default, as an example I use excerpts on my home page so there is no need to load everything on the home page, all it does is add about a second to my page load times (yes, I’m overly critical of page load times) lol

    Anyhow, that would be a great feature… OR having an option to only have it enabled on a post by post basis using a check box or even a custom field… just throwing ideas out there :-)

    thanks again.

    • Viper007Bond says:

      Umm, it already does that. The Javascript and CSS files are only loaded if they are actually needed for that specific page. ;)

      • Jesse says:

        odd, I had read that before and I was hopeful but I figured I mis-read it or something because i am using the most recent version and it is including everything on every page, here is what is on my homepage view source right at this moment :-)

        <script type='text/javascript' src='http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shCore.js?ver=2.1.364b'></script>
        <script type='text/javascript' src='http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js?ver=2.1.364b'></script>
        <script type='text/javascript' src='http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushCss.js?ver=2.1.364b'></script>
        <script type='text/javascript'>
        	(function(){
        		var corecss = document.createElement('link');
        		var themecss = document.createElement('link');
        		var corecssurl = "http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css?ver=2.1.364b";
        		if ( corecss.setAttribute ) {
        				corecss.setAttribute( "rel", "stylesheet" );
        				corecss.setAttribute( "type", "text/css" );
        				corecss.setAttribute( "href", corecssurl );
        		} else {
        				corecss.rel = "stylesheet";
        				corecss.href = corecssurl;
        		}
        		document.getElementsByTagName("head")[0].appendChild(corecss);
        		var themecssurl = "http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shThemeDefault.css?ver=2.1.364b";
        		if ( themecss.setAttribute ) {
        				themecss.setAttribute( "rel", "stylesheet" );
        				themecss.setAttribute( "type", "text/css" );
        				themecss.setAttribute( "href", themecssurl );
        		} else {
        				themecss.rel = "stylesheet";
        				themecss.href = themecssurl;
        		}
        		document.getElementsByTagName("head")[0].appendChild(themecss);
        	})();
        	SyntaxHighlighter.config.clipboardSwf = 'http://admindaily.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf';
        	SyntaxHighlighter.config.strings.expandSource = 'show source';
        	SyntaxHighlighter.config.strings.viewSource = 'view source';
        	SyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard';
        	SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now';
        	SyntaxHighlighter.config.strings.print = 'print';
        	SyntaxHighlighter.config.strings.help = '?';
        	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
        	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
        	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
        	SyntaxHighlighter.defaults['auto-links'] = false;
        	SyntaxHighlighter.all();
        </script>
        
        • Viper007Bond says:

          That’s because somewhere in your page you’re using the PHP and CSS brushes.

          • Jesse says:

            I assure you that I am not, as a matter of fact I only have one post on my site that uses syntax highlighting and that post was written months ago.

            It seems to work correctly on pages other than the home page, for example if you open my contact page it is not included there but the home page it is, do you have any ideas why this would happen?

  40. Nano HE says:

    Hi,
    Bug found.

    when i posted
    @array now has (5, 6, 0, 8)

    acturally the post was changed to the error style below.

    @array now has (5, 6, 0,

    thank you.

  41. Nano HE says:

    OR, i posted here also was changed when i submitted !!!

    acturally the ’8′ and the ‘)’ joined together can’t be showed normally. That’s what i want to descript here.

    thanks.

  42. Jesse says:

    Update… I take that back, I do have a post I made recently that is using it and that post excerpt is displaying on the home page presently… the brushes are not included in the excerpt however… I guess it goes thru the entire post and includes it if it is found?

    Would still be handy to have a check box in admin to use to disable on the home page as it’s not needed there, even if there is a excerpt for a post that uses it.. Hope this makes more sense lol.. thanks

    • Viper007Bond says:

      That’s a rather specific checkbox and would be UI bloat really.

      In your footer file, before wp_footer(), just do this:

      if ( is_home() ) {
      	global $SyntaxHighlighter;
      	$SyntaxHighlighter->usedbrushes = array();
      }
  43. [...] miglior plugin è secondo me è SyntaxHighlighter Evolved, che è installato di default se utilizzate wordpress hosted (su wordpress.com), ma dovete [...]

  44. [...] det frem på jeres WordPress blog ja, så syndes jeg helt klart i skulle tage et kik på denne side http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/ det er det samme plugin jeg benytter her på [...]

  45. Tanks for relly nice plugin, i use it on machosted, a danish website for Mac nerds :) tanks a lot.

  46. [...] changes. It uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev. For a live demo, see this plugin’s homepage. For a list of supported languages (most widely used languages are supported), see the [...]

  47. Hello,
    I use your plugin for my codes in bash script and would like to request further because I have no knowledge of javascript regex.
    All variables in bash script start with “$” and accept “-”, “.” and “_”.
    I tried to add the following:

    { regex: /\$.*\b /gm, css: ‘variable’ }

    But he is getting much more than just the word with “$”

    Could you help me?

  48. marc says:

    Hello,

    The plugin works fine with me, but in category and archive view my site loses the formatting.

    Any clues about how to fix that?

    Thank you.

  49. marc says:

    I fixed it. It was a problem in my template file archive.php . Instead of calling

    <?php the_content('Read the rest of this entry »’); ?>

    it was using the_excerpt()

  50. [...] Statistikplugin -> Smart Youtube – komfortable Einbettung von Youtube Videos -> [SyntaxHighlighter Evolved] – Codehighlighter // WP-Syntax – schlanke Alternative -> Twitter Widget // deutsche [...]

  51. Jack Perry says:

    Viper, I’m curious, whenever I have PHP code and wrap it in the shortcode, the beginning “” are converted into HTML “<” and “>” in the code box. Any ideas?

  52. rsjs says:

    For some reason, I keep getting inserted at random when i try to paste in VB code, any idea why this happens ?

    Nice plugin, but feel the documentation could be better

  53. [...] SyntaxHighlighter Evolved : pour publier visuellement des bouts de code, que ce soit CSS, HTML, PHP, XML, C++ ou de nombreux formats, chacun aura un style différent et colorisé (aussi clair que les éditeurs Eclipse ou Dreamweaver) et permet aux lecteurs de facilement comprendre la syntaxe et copier le code (fonction presse-papier). [...]

  54. [...] Zur Zeit entwickle ich ziemlich viel in Xcode fürs iPhone und komme dabei auf einige Workarounds und Fixes, daher gibts hier ab sofort eine eigene Kategorie dafür. Um den Code auch ordentlich darzustellen benutze ich das SyntaxHighlighter Extended Plugin von Viper007Bond. [...]

  55. chitgoks says:

    hi. does the plugin support ?
    because there is an option

    Always load all language files (for directly using tags rather than shortcodes)
    If left unchecked (default), then language files will only be loaded when needed

    i checked that but my existing code in tags doesnt get highlighted. thanks

  56. [...] ??????????????????????SyntaxHighlighter Evolved???? [...]

  57. [...] Lightbox Gallery??????????????? >>SyntaxHighlighter Evolved??????????????????????? comments [...]

  58. [...] ????????????????????????????????????????????????????SyntaxHighlighter Evolved????WordPress??????????????? [...]

  59. Kevin S says:
    #authorbox{
        background:#EFEFEF;
        border:1px solid #CECFD0;
        width:638px;
        margin:0 auto;
        margin-bottom:10px;
        overflow:hidden;
    }
        #authorbox h4{
            font-size:16px;
            color:#191919;
            margin:0;
            padding:10px 10px 5px 10px;
        }
    .authortext{
            padding-left:100px;
        }
    #authorbox img{
            margin:0;
            padding:10px;
            float:left;
        }
        #authorbox p{
            color:#191919;
            margin:0;
            padding:0px 10px 10px 10px;
        }
     #authorbox h4 &amp;gt; a{
            text-decoration:none;
        }
    #authorbox p{
            color:#191919;
        }
  60. Kevin S says:

    hi.. above one is my post which dosent work with my Blog.. seems its working here but it is not working for me.. :( My url is:http://annanta.com/archive/how-to-make-an-author-box-in-wordpress/

    Please help me..

  61. Hey great plugin. Today I’ve been updating and working on my template. Not sure why but my SyntaxHighlighter isn’t working now. Give me any clues? I noticed there isn’t and calls to any external CSS files when I view source. functions.php is clean……hmmmm

  62. Would it be possible to modify the plugin, such that the line numbers and code are separate? It’d be great if the line numbers were not included when one tries to highlight a portion of the code for a copy&paste (else, you have to manually delete the line numbers after the paste).

    Currently, one has to copy the code to the clipboard and then pick out the lines, but it’d be better if that could be done directly on the site instead of on the clipboard.

    P.S.: Great work on this plugin!

  63. Jean-Pierre de la Croix,
    I see an option to disable the line numbers. You should have the same options under your dashboard.

  64. Jean-Pierre,
    You’re right.

    One idea would be to add a feature that would split the line numbers from the actual line of code. Two tables or Two divs? This way users can easily copy the code without lines numbers.

    Another feature idea is to have an option to set a line number as an “anchor” tag so that bloggers can reference that line number in their blog article. “example… If you look at line 235 of my code below…” and “235″ would link the the line number which is an html anchor.

  65. Time to pull the code down from BitBucket and take a look at it :)

  66. Armin says:

    Great plugin, I am using it on my own blog.

  67. [...] problem is in clipboard.swf file loading as icon (copy to clipboard). There are more people complaining on this error behaviour, and there is a simple fix. Replace this file in your [...]

  68. TokkonoPaPa says:

    Thank you for the great plug-in.
    The color ‘Midnight’ is my best favorite.

    BTW, even if a blog passes XHTML1.0 or 1.1 validation without this
    plug-in, it becomes invalid with this plug-in.

    W3C validator recommends that:
    character “;” is not allowed in the value of attribute “class”
    <pre class=”brush: php; gutter: false;>

    I think separator should be space.

    I hope many WP people like this slight modification.

  69. Reuben says:

    I’d like to use this plugin, but it doesn’t seem to prevent wordpress from mangling the code. For example, check out the script on http://flavor8.com/index.php/2010/01/30/how-to-rip-your-cds-for-the-lazy-geek/ (search for “The Script”). With this plugin, the # in the shebang is replaced by , quotes are html escaped, etc – and the actual HTML syntax is output.

    • Viper007Bond says:

      Are you using an editor other than the one in your WordPress admin area by chance? You could also have other plugins that are breaking it. Works fine for me:

      #!/bin/bash
      FROM=1
      NUM=44
      DEV=/dev/powerfilecd1
      function log {
          echo `date` $1
      }
      function cleanup {
          pkill abcde
          rm -fr abcde*
          echo Rip of cd $1 failed >> error.log
      }
      function monitorrip {
          {
              while read line
                  do
                      log "$line"
                      # cdparanoia keeps chundering forward even if there's a scsi_read error
                      # this slows things down unacceptably, so we'll just kill the job and move forward
                      echo "$line" | grep "scsi_read error" && cleanup $1 && break
                  done
          } | tee
      }
      function ripcd {
          # look for scsi read errors
          abcde -d $DEV -NV 2>&1 | monitorrip $1
      }
      function loadcd {
          date
          # load the cd into the drive, and send the sdparm eject command to make udev notice
          mtx load $1
          sdparm -C eject $DEV
      }
      function unloadcd {
          date
          # send sdparm and eject to flush the cd devices
          sdparm -C stop $DEV
          # not strictly necessary, but your desktop environment might be automounting,
          # so this will force a umount if applicable
          eject $DEV
          sleep 7
          mtx unload $1
      }
      function rip {
         for n in `seq $FROM $NUM`
         do
              echo ____________________________________________________________
              echo RIPPING CD $n
              echo ____________________________________________________________
              date
              loadcd $n
              ripcd $n
              unloadcd $n
         done
      }
      function reset {
          echo Resetting jukebox position
          # this shouldn't be necessary but seems to fix an error condition
          mtx first
          mtx unload 1
      }
      reset
      rip | tee output.txt
      • Reuben says:

        Ah OK, I found the bug.

        Try a newline after the opening tag, i.e. #!/bin/bash on its own line. That causes the behaviour I noticed.

        • Reuben says:

          Another interesting variation on this bug; if you change the first few lines to:

          #!/bin/bash

          # which CD to start from
          FROM=39
          # how many CDs are loaded
          NUM=200
          # how many seconds a CD rip can take before we kill it
          TIMEOUT=2400
          # the device to use for ripping
          DEV=/dev/powerfilecd1

          …then the bug kicks in. If you remove the comments, it’s fine.

  70. Mary says:

    This plugin don’t work in my blog. Nothing change. I’m using code
    In Settings works…

    =(

  71. Fernando says:

    Hello,

    I have the plugin syntax highlighter activated and SEO smart links too. Is there a way to disable SEO smart links inside the code that syntax highlighter generates?

    Thank you

  72. Fernando says:

    Good point on that, but I already have clickable URLs disabled, so it shows them as

    WordPress

    Any other ideas?

  73. Fernando says:

    Not possible. When I activate SEO smart links, I get this problem. When SEO smart links is disabled, no code problems with your plugin linking with stuff.

  74. Fernando says:

    And any clues about how to fix it?

  75. Fernando says:

    I talked to the SEO smart links author and he told me he has no time to fix it. He would add a patch if I gave it to him.

    Is it too difficult to do it in Syntax Highlighter Evolved code to remove “a” tags at the same time as we disable clickable URLs?

  76. [...] Syntax Highlighter plugin is used for a customized source code formatting [...]

  77. Mark says:

    It’d be lovely if the plugin also looked at the RSS feed, ensuring that long lines were sanely wrapped.

    e.g.

    This is a very long line of code which will cause problems when formatted as pre in the RSS feed

    becomes

    This is a very long line of code which will
    + cause problems when formatted as pre
    + in the RSS feed

  78. Kristoffer says:

    I can’t get it working on my website. What do I do wrong? I write

    <?php
    phpinfo();
    ?>

    for example. And it don’t show it with the syntax highlighted.

  79. Kristoffer says:

    Is there anything I have to add anywhere? – it’s a costum template. I’m running WP 2.9.1

  80. Kristoffer says:

    Many thank you for the quick answer. I added the code, and it works now… :)

  81. [...] Sayfas?: SyntaxHighlighter Evolved Etiketler: css kod, Evolved, Highlighter, kod, kod ekleme, php kod, sayfaya kod, Syntax, [...]

  82. CongratulationsS!
    The plugin is very nice!

  83. [...] nice benefit to upgrading was that I’m now able to leverage the Syntax Highlighter plugin. It does nifty stuff like [...]

  84. [...] on.  In addition, I’d like to recommend Contact From 7 for WordPress contact forms, and Syntax Highlighter Evolved for doing easy source code snippit syntax coloring in WordPress.  Both of these plugins are [...]

  85. [...] SyntaxHighlighter Evolved Permet d’afficher un code source dans un billet comme sur ce site. [...]

  86. ?????? says:

    ??? ?????.
    Thank you, very good help!

  87. Federico says:

    Hi, this is a great plugin, but my theme doesn’t have on footer.php, it’s not a tipical theme, is Carrington. Is there anyway I can get Syntax Highlighter to work? Because it broke all the code and perhaps is for the missing of that line on the footer.Thanks!

    • Viper007Bond says:

      wp_footer() is a required WordPress theme hook. All themes need to have it. It doesn’t really matter where it is (it could be in your sidebar if you wanted), but it needs to be somewhere.

  88. [...] SyntaxHighlighter Evolved [...]

  89. [...] ?SyntaxHighlighter Evolved (Ver2.3.8) [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you wish to post code, write it like [code]blah[/code] so it will display properly.