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:
- Download from WordPress.org (166,420 downloads)
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.
[...] SyntaxHighlighter Evolved [...]
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
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.
@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
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
On:
Off:
Source of this comment: http://viper007bond.pastebin.com/f7aee5b3d
[...] 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 [...]
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 blueGrr I mean both times it displays the entity names & lt ; etc
Disable all other plugins, switch to the default theme, don’t use a desktop editor, etc. Basically eliminate all variables.
hi, in safari (mac) the code areas are empty. i don’t have a clue why, in firefox the plugin works fine…
I had multiple people test on their Macs and it works fine for all of them. *shrug*
Safari 4 / OS X 10.6 screenshot: http://pic.phyrefile.com/v/vi/viper007bond/2009/12/06/v007.png
[...] Aizatto’s SyntaxHiglighter Released Update: This plugin has been discontinued, I would recommend you use SyntaxHighlighter Evolved [...]
[...] think I’m gonna stick onto this Clean-home theme and SyntaxHighlighter Evolved. They both working [...]
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”.
I’d guess another plugin is at fault. Disable all of them but this one and try writing a fresh post. If not that doesn’t work, try using the HTML tab only (no rich editor).
[...] 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). ↩ [...]
[...] SyntaxHighlighter Evolved [...]
Finally figured it out Viper
When this code was present in the post, html entities were displayed:
Strange, no? :S
Hi Viper,
Thanks for fixing the Objective-C brush!
Cheers
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:
Output:
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
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.
Switch to HTML view. If the stuff you’re seeing isn’t showing up there, then it’s being added by another plugin. Disable them to debug.
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
Reupload the file. It likely uploaded badly.
[...] SyntaxHighlighter Evolved [...]
[...] 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 [...]
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:
Your theme is likely missing
from it’s footer.php file.
WOW, incredible! Here the code is functionally…
I have write the same code in my post, but it appears nothing..
[ bash ] code [ / bash ]
That’s incredible. I’ve forgot this in my template!
Thank you
[...] Insa recent am gasit un plugin impresionant la capitolul formatare cod: SyntaxHighlighter Evolved [...]
[...] 2. Page Navigation ???????. 3. WPtouch 1.9.5 i phone????????. 4.SyntaxHighlighter Evolved ????????. ????????????????? [...]
[...] 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. [...]
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/
Disable all other plugins to make sure they’re not doing the escaping and also try using the HTML view on the WordPress editor to eliminate any other variables.
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!
[...] ??????????SyntaxHighlighter Evolved SyntaxHighlighter Evolved ? XHTML , CSS , PHP , JavaScript , ActionScript , Perl ????????C+ ? C# ?????????????????????????? HTML ??????????????????????????????????????????????? [...]
I finished localization files in Traditional Chinese, how should I send them to you?
Send it to viper at this domain or use the contact form to send me an e-mail and I’ll reply.
hi,??
??????????????? ?????????????????????????????????????
??????????
thanks! very much.
[...] ???????????, ?????????, ? wordpress ???????, [...]
[...] 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. [...]
[...] 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 [...]
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!
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?
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.
You’ll need to create your own theme. Use one of the existing ones as a base: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
I have some plans to make it easier (possible actually) to override the styling via rules in your theme’s normal stylesheet. Currently that’s not doable due to how the CSS is done (it’s added very last with an !important).
Great plugin
Thanks a lot
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.
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.
shortcuts instead.
What can I do?
Install v2.3.7, check the box that forces the language files to always be loaded into the page. That’ll make
<pre>tags work.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
You should send such a suggestion to Alex Gorbatchev, the author of the highlighting package. I’m only the author of the WordPress half of this plugin.
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.
Umm, it already does that. The Javascript and CSS files are only loaded if they are actually needed for that specific page.
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>That’s because somewhere in your page you’re using the PHP and CSS brushes.
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?
Hi,
Bug found.
when i posted
@array now has (5, 6, 0,
acturally the post was changed to the error style below.
@array now has (5, 6, 0,
thank you.
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.
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
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(); }That did the trick… I know I’m a bit particular lol… I’ve taken my site from 18 seconds page load times to just over 2 without removing any content, features or images… so I get tied up over every little bit of excess code.. this worked like a charm, thanks.
Then your browser is having issues. It should cache all Javascript files and not download them again on each page load.
lol, I know they are cached… my point is that I only have it in use on 2 posts on that site, so unless someone is going to view one of those two posts there is no reason to make them download the scripts
Which is why my plugin only loads them when they’re needed.
lol, correct… except for on my home page where it’s not, but thats all fixed now thanks to that handy bit of code you gave me before
[...] miglior plugin è secondo me è SyntaxHighlighter Evolved, che è installato di default se utilizzate wordpress hosted (su wordpress.com), ma dovete [...]
[...] SyntaxHighlighter Evolved [...]
[...] 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å [...]
Tanks for relly nice plugin, i use it on machosted, a danish website for Mac nerds
tanks a lot.
[...] 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 [...]
[...] http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/ [...]
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?
You should submit your request to the author of the highlighter: http://alexgorbatchev.com/wiki/SyntaxHighlighter
I just wrote all of the WordPress stuff.
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.
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()
[...] Statistikplugin -> Smart Youtube – komfortable Einbettung von Youtube Videos -> [SyntaxHighlighter Evolved] – Codehighlighter // WP-Syntax – schlanke Alternative -> Twitter Widget // deutsche [...]
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?
Fantastic plugin.
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
No idea about the VB.
Some documentation is available at the bottom of the settings page as well as here: http://en.support.wordpress.com/code/posting-source-code/
[...] 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). [...]
[...] 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. [...]
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
[...] ??????????????????????SyntaxHighlighter Evolved???? [...]
[...] Lightbox Gallery??????????????? >>SyntaxHighlighter Evolved??????????????????????? comments [...]
[...] ????????????????????????????????????????????????????SyntaxHighlighter Evolved????WordPress??????????????? [...]
#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 &gt; a{ text-decoration:none; } #authorbox p{ color:#191919; }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..
See the second question: http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
Hi, thanks a lot.. was missing from footer..
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
Your theme is likely missing the required footer hook: http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
Thanks that worked!!
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!
Use the toolbar in the upper-right of the code box. It’s there for a reason and allows you to see the raw code as well as one-click directly to your clipboard.
Jean-Pierre de la Croix,
I see an option to disable the line numbers. You should have the same options under your dashboard.
Yes, but unfortunately that takes away a lot of the readability.of code that is multiple lines long.
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.
Time to pull the code down from BitBucket and take a look at it
Great plugin, I am using it on my own blog.
[...] 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 [...]
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.
I did not write the highlighter, just the WordPress implementation of it. You’d need to take that up with the author of the Javascript package.
Thank you for your reply.
I modified
syntaxhighlighter.phpas follows to fix my problem with plugin version 2.3.8.before modification:
$params[] = “brush: $lang;”;
after modification:
$params[] = “brush: $lang”;
And also line 846 and 848.
I apologizes if I have a misunderstanding.
Ah, I was unaware that it would work without semi-colons. Thanks.
[...] SyntaxHighlighter Evolved [...]
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.
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.txtAh 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.
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.
Interesting. I’ll see if I can reproduce/debug/fix.
This plugin don’t work in my blog. Nothing change. I’m using code
In Settings works…
=(
[...] SyntaxHighlighter Evolved [...]
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
Visit the settings page. You can control the clickable URLs option there.
Good point on that, but I already have clickable URLs disabled, so it shows them as
WordPress
Any other ideas?
Oh, I see — another plugin is causing the issue. It should be modified to not touch anything inside of
<pre>tags. My plugin is not at fault.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.
Exactly. This “SEO smart links” plugin is at fault.
And any clues about how to fix it?
That is something you’d need to take up with the plugin’s author (tell them not to touch anything inside of pre tags).
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?
Then how would someone post the source code of a link? I’m sorry, but there’s nothing that can be done on my end.
[...] Syntax Highlighter plugin is used for a customized source code formatting [...]
[...] SyntaHighlighter Evolved [...]
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
I can’t get it working on my website. What do I do wrong? I write
for example. And it don’t show it with the syntax highlighted.
Is there anything I have to add anywhere? – it’s a costum template. I’m running WP 2.9.1
http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
Many thank you for the quick answer. I added the code, and it works now…
[...] Sayfas?: SyntaxHighlighter Evolved Etiketler: css kod, Evolved, Highlighter, kod, kod ekleme, php kod, sayfaya kod, Syntax, [...]
CongratulationsS!
The plugin is very nice!
[...] ??????????? SyntaxHighlighter Evolved [...]
[...] nice benefit to upgrading was that I’m now able to leverage the Syntax Highlighter plugin. It does nifty stuff like [...]
[...] 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 [...]
[...] SyntaxHighlighter Evolved Permet d’afficher un code source dans un billet comme sur ce site. [...]
??? ?????.
Thank you, very good help!
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!
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.[...] SyntaxHighlighter Evolved [...]
[...] ?SyntaxHighlighter Evolved (Ver2.3.8) [...]