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 toolbar and line numbering 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.

  • #401 written by Viper007Bond 
    about 3 months ago

    In Reply To colin:

    That’s not possible, although you may try wrapping the shortcodes in a div with a fixed height. That might accomplish what you’re looking for.

    If not, try the collapse code boxes option (it’s not what you want, but will avoid long blocks of text).

  • #402 written by colin 
    about 3 months ago

    thanks for the confirmation. i was hoping to avoid a div tag wrapper, but it works fairly well. it’s not perfect though, because the horizontal scroll bar is nested within the div wrapper, which looks a bit odd.

    for others facing this problem, here’s the div i used:

    code here

    to remove gaps between the code area and the parent div, I also had to update the code in shCore.css as follows:

    .syntaxhighlighter
    {
    width: 100% !important; /* 99% fixes IE8 horizontal scrollbar */
    margin: 0 0 0 0 !important;
    padding: 0 !important; /* adds a little border on top and bottom */
    position: relative !important;
    }

    in future, i would love to see an option to set the number of visible lines. e.g., if i put 200 lines into this code:

    
    

    then only 50 would show up. to see the remaining 150 lines, the user would have to scroll down with a vertical scrollbar.

    thanks for a great plugin!

  • #403 written by colin 
    about 3 months ago

    looks like the comments interpreted my sh tags. the two code examples in the previous post should read:

    <div style=”overflow:auto;height:300px;>
    [j a v a]code here[/j a v a]
    </div>

    and:

    [j a v a lines=50]
    [/j a v a]

  • #404 written by Viper007Bond 
    about 3 months ago

    In Reply To colin:

    Sorry, but I didn’t write the highlighter, only the WordPress implementation of it. You’ll need to take it up with Alex G. :)

  • #405 written by colin 
    about 3 months ago

    i see. is alex still maintaining the code? got a url?

    btw, the “copy to clipboard” feature seems to be using flash, and it’s generating lots of warnings and errors. i get:

    Warning: ‘flash’ has no property ‘prototype’
    Warning: ‘StageVideo’ has no property ‘prototype’
    Warning: ‘AsBroadcaster’ has no property ‘addListener’
    Warning: ‘AsBroadcaster’ has no property ‘removeListener’
    Warning: ‘this’ has no property ‘_visible’
    Warning: ‘this’ has no property ‘_visible’
    Warning: Reference to undeclared variable, ‘highlight_mc’
    Warning: Reference to undeclared variable, ‘highlight_mc’
    Warning: onSetFocus is not a function
    Warning: myOnSetFocus is not a function
    Warning: onKillFocus is not a function
    Warning: onSetFocus is not a function
    Warning: myOnKillFocus is not a function
    Warning: myOnSetFocus is not a function
    Warning: onKillFocus is not a function
    Warning: myOnKillFocus is not a function
    Warning: ‘flash’ has no property ‘prototype’
    Warning: ‘StageVideo’ has no property ‘prototype’
    Warning: ‘AsBroadcaster’ has no property ‘addListener’
    Warning: ‘AsBroadcaster’ has no property ‘removeListener’
    Warning: ‘flash’ has no property ‘prototype’
    Warning: ‘StageVideo’ has no property ‘prototype’
    Warning: ‘AsBroadcaster’ has no property ‘addListener’
    Warning: ‘AsBroadcaster’ has no property ‘removeListener’

    and on google chrome, under flash player 10.1.53.7 i get this error:

    Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

    (i run the debug version of the player. most people won’t see the error.)

    looks like it might be actionscript 2? would that be alex’s domain too?

    anyway, until this is fixed, is there any way to disable just the clipboard feature (not the entire toolbar)? is that another feature request for alex?

    colin

  • #406 written by colin 
    about 3 months ago

    p.s., here’ the page with the code examples in a scrolling div:
    http://www.unionplatform.com/?page_id=1229

  • #407 written by Viper007Bond 
    about 3 months ago

    In Reply To colin:

    Yes, all of the visitor facing stuff is him. Check out the top of this page for a link to his site. He is currently developing a new version of the highlighter.

  • #408 written by colin 
    about 3 months ago

    gotcha. i reported the issues here:
    http://bitbucket.org/alexg/syntaxhighlighter/issues

  • #409 written by Roy 
    about 3 months ago

    I’d been trying to output this statement.

    <img src='dummy.jpg' height='200' width='400' />

    But e always shows up with < > instead

  • #410 written by Viper007Bond 
    about 3 months ago

    In Reply To Roy:

    Try disabling all other plugins if it’s not working on your blog but it is on mine.

  • #411 written by Roy 
    about 3 months ago

    In Reply To Viper007Bond:

    Hi, I tried publishing the post after I saw the comment here turned out fine. And it works! However, it doesn’t render well in preview mode.

    But that’s no big issue anyway. Thanks.

  • #412 written by HowToDoWiki 
    about 3 months ago

    We installed SyntaxHighlighter Evolved plugin but still it is not showing up the PHP code. Even after uninstalling it, WordPress 3 is running PHP Codes in posts. WP3 does support code and pre functions right? Please take a look – HowToDoWiki PHP Post

  • #413 written by HowToDoWiki 
    about 3 months ago

    In Reply To HowToDoWiki:

    Update: We had to parse code in order to include it in post. Now PHP codes are showing up but not the SyntaxHighlighter. Code and Pre tags are not working on our WordPress 3 installation. Thank you in anticipation.

  • #414 written by Viper007Bond 
    about 3 months ago

    In Reply To HowToDoWiki:

    Please read the documentation. You do not use code or pre tags with this plugin.

    http://wordpress.org/extend/plugins/syntaxhighlighter/installation/

    [php]<?php echo 'Hello world!'; ?>[/php]
  • #415 written by HowToDoWiki 
    about 3 months ago

    In Reply To Viper007Bond:

    Thank you. It is working now :)

  • #416 written by Viper007Bond 
    about 3 months ago
  • #417 written by Dave 
    about 3 months ago

    I LOVE the look of this plugin, unfortunately it would not work properly on my blog. When I would preview, it looked fine. However, after saving the draft special characters were changed. Here are the images of what I’m talking about…

    http://shinytype.com/images/code-good.jpg
    http://shinytype.com/images/code-bad.jpg
    (I use the PHP shortname tags around the code)

    This does not happen when I use the CodeColorer plugin – which works, but doesn’t look nearly as good as yours and doesn’t have much functionality. Maybe it works because it utilizes the tags natively?

    I'd be elated if I just weren't doing something correctly or if there was something I could do to rectify this. Thank you for your time!

  • #418 written by Dave 
    about 3 months ago

    In Reply To Dave:

    Crap. I feel a bit embarrassed – posted this on the wrong plugin page. I thought these were the same plugins for some reason (apparently because I’m a retard?) hehe. The GOOD news, however, is that THIS plugin works brilliantly! Solved the problem. You rock, sir! :) (…still horrendously embarrassed though, haha)

  • #419 written by Viper007Bond 
    about 3 months ago

    In Reply To Dave:

    No problem and glad you like the plugin. :)

  • #420 written by PTKTheBest 
    about 3 months ago

    I have problem with publish post with SyntaxHighlighter with scribefire blog editor… Solution?

  • #421 written by Viper007Bond 
    about 3 months ago

    In Reply To PTKTheBest:

    I have no idea what that is and you haven’t said what the problem is.

  • #422 written by PTKTheBest 
    about 3 months ago

    Scribe Fire is a “Blog Editor” for Firefox. If i post php code (exemple:

     CODE PHP 

    from scribe fire or other blog editor) this have incorrect syntax.

  • #423 written by sarp 
    about 3 months ago

    hey!
    I’ve just installed this plugin to my wordpress but there aooears to be a problem, no matter what the language type is, plugin puts random newlines in codes and 3 lines of code becomes 6-7 lines of code;

    This code appears like;

    I could not figure it out, and wonder what the problem is.
    It would be appriciated if you can help me with this problem.

    p.s I’ve tried disabling all other plugins but did not work..

  • #424 written by sarp 
    about 3 months ago

    oops forget the codes

    <?php
    $connect = mysql_connect($host,$user,$pass);
    $db = mysql_select_database($database,$connect);
    ?>
    

    looks like

    <?php
    $connect
    = mysql_connect(
    $host,$user,$pass
    );
    $db
    = mysql_select_database(
    $database,$connect
    );
    ?>
    

    annoying..

  • #425 written by Viper007Bond 
    about 3 months ago

    In Reply To sarp:

    Since it’s working on my blog, then it’s very likely not my plugin at fault.

    Did you have all other plugins disabled when you wrote the post? If you edit the post, does it look correct or does it have the line breaks? (view in HTML mode to be sure)

  • #426 written by sarp 
    about 3 months ago

    I’ve tried disabling all other plugins and posting a new one but I figured out that installing the plugin to a fresh intallation of WP solves the problem. I guess one of my plugins affects syntaxhighlighter and disabling it does not work for it, anyway thanks for the fast reply if I find out which plugin makes it malfunciton I’ll post it here so that people would know what plugin to install.. :)

  • #427 written by Viper007Bond 
    about 3 months ago

    In Reply To sarp:

    It could be your theme then.

  • #428 written by sam 
    about 3 months ago

    Viper,
    Alex released a beta (http://twitter.com/syntaxhighlight) of the 3.o release at
    http://bitbucket.org/alexg/syntaxhighlighter/src . Are you planning on supporting the new options any time soon?
    Thanks for a great plugin.

    PS: Here is a small feature request for the next version. To match my site, I tweak the default syntax theme CSS file. This obviously gets overwritten with every update of yours. Is there a way that you can support picking up a user’s CSS from a different location out of the plugin dir? WPTouch does this for icons. They use /wp-content/uploads/wptouch/custom-icons/.

  • #429 written by Viper007Bond 
    about 3 months ago

    In Reply To sam:

    I will not be supporting the new version of his highlighter until it goes out of beta.

    I’m currently recoding another plugin (Video Quicktags) and when I’m done with that one, I’ll begin work on updating this one in preparation for his release.

  • #430 written by Ash Menon 
    about 3 months ago

    Hi Alex, first of all, rocking plugin. I’ve tried many others and yours is definitely the easiest to use with the best looking results. But I’ve come across a rather odd problem. I find that certain characters (or combination of them) will break the post altogether, resulting in a 404 page. Examples of characters (each enclosed in parentheses) include (/=) and (; //).

    I don’t think this has anything to do with the plugin per se, since the other syntax plugins have also shown this error on the same characters. I’ll be doing some testing tomorrow to check localhost and WP versions, but I have a stinking suspicion that it’s related to my domain. Have you heard of anything like this before?

  • #431 written by Viper007Bond 
    about 3 months ago

    In Reply To Ash Menon:

    I don’t see how what’s inside the post content would result in a 404.

    Is it a WordPress-themed 404 or a server (Apache, etc.) 404?

  • #432 written by Ash Menon 
    about 3 months ago

    In Reply To Viper007Bond:

    It’s a wordpress 404. In fact it’s the 404 page that I designed. I checked the error logs in my PHP, and it doesn’t show anything.

  • #433 written by Viper007Bond 
    about 3 months ago

    In Reply To Ash Menon:

    A WordPress 404 wouldn’t result in any PHP errors. Never heard of such an issue, but it doesn’t sound related to my plugin.

  • #434 written by Michael 
    about 2 months ago

    Hi Viper,
    I installed and activated your plugin (v2.3.8) and akismet (v2.2.7) into WordPress (v 2.9.2) and all the categories disappear in the display on my blog and in the admin category section. I then deactivated both plugins one at a time and still no resolution however when I then delete your plugin files the categories reappear in the front and backend. I am puzzled do you know of this issue or what may be causing it? I thought at first it could be my theme but the issue was in the admin also. Any help would be appreciated as I would love to use your plugin as well as akismet.

    Thanks

  • #435 written by Viper007Bond 
    about 2 months ago

    In Reply To Michael:

    I don’t see how my plugin files existing while the plugin is deactivated could cause any problems. Plus, the plugin is in use on my blog as well as all of WordPress.com and it doesn’t have any issues on either. It’s worth trying it using the default theme just incase.

  • #436 written by Michael 
    about 2 months ago

    In Reply To Viper007Bond:

    I don’t know what it was but I decided to re-install all elements and all seems well. Thanks for your reply!

  • #437 written by Mehmet 
    about 2 months ago

    Hi Alex,

    I use SyntaxHighlighter Evolved on my blog. But I have some problems.

    It puts and for new lines also some problem for double quotes.

    It is easier to understand the issue if you see the screenshots below:

    http://www.susakli.com/_temp/scr_editor.jpg

    http://www.susakli.com/_temp/scr_tmp.jpg

    Thanks for help.

  • #438 written by Viper007Bond 
    about 2 months ago

    In Reply To Mehmet:

    Switch to HTML view when editing the post. Does it look correct or are there paragraph tags there? If it looks correct, try disabling other plugins.

  • #439 written by NTD 
    about 2 months ago

    hi Viper007Bond,
    when using syntaxhighlight, it shows not properly in Avant/IE/Chrome browser but FF. The syntax box’s larger than my page’s width:
    http://www.ntd.me/cach-nhung-nut-like-cua-facebook-vao-wordpress.htm

    and how to highlight some words in a paragraph, eg: i want to highlight “http%3A%2F%2Fwww.ntd.me%2Ftieng-goi-15-nam.htm” in this codebox:

    [/code]

    thank you (:

  • #440 written by Viper007Bond 
    about 2 months ago

    In Reply To NTD:

    Something in your theme’s CSS is doing it. I’m not sure what. :(

  • #441 written by Michael Fields 
    about 2 months ago

    Hi, great plugin. I’ve been using it on my site for a while. I just noticed that it is encoding my angled brackets as html entities. Not sure if this is a bug or something that I am doing wrong. Just wanted to throw it out there regardless. Please see code posted here for example:

    http://wordpress.mfields.org/2010/getting-down-and-dirty-with-wp_query-set/

  • #442 written by angus 
    about 2 months ago

    please update latest core “SyntaxHighlighter 3.0.83″
    http://alexgorbatchev.com/SyntaxHighlighter/

  • #443 written by Viper007Bond 
    about 1 month ago

    In Reply To angus:

    It only came out a few days ago. Give me time. ;)

  • #444 written by moustafa 
    about 1 month ago

    thanks alot…

  • #445 written by Lari 
    about 1 month ago

    Hi!
    I have problems when I post plain html using the syntax highlighter.

    All the shows up with entities instead of the right code.

    I have tried to use different languages, but can’t get it to work.

  • #446 written by Crayon 
    about 1 month ago

    Hi, SyntaxHighlighter Evolved 2.3.8 is using SyntaxHighlighter 2.0.320. since July 2, version 3.0.83 is available. It really looks great and I was wondering if you were planing to update your product?

  • #447 written by Crayon 
    about 1 month ago

    Oops, sorry for the last post. I did not read your reply to angus.

    Thank :)

  • #448 written by Bill Hollings 
    about 1 month ago

    On the SyntaxHighlighter settings page, I have the “Wrap long lines” setting UNchecked. However, the scrollbar never shows up on code listings with long lines. Code listings always wrap instead.

    I’ve tried the setting switch both ways. I’ve also tried including the wraplines attribute both ways in the sourcecode element…but to no effect.

    Has anyone encountered this before?

    Could it be some kind of conflict with the CSS my WP theme (Atahualpa)? If so…I’m at a loss to see where. Naked HTML pre elements show the scroll bar properly…so any possible conflict can’t be general in nature.

    What could I be missing?

    Thanks…

    …Bill

  • #449 written by Bill Hollings 
    about 1 month ago

    Hmmm…after a bit more digging I have a bit more info about the scrollbar problem (but still no solution).

    This seems to be localized to IE (I have IE8). Firefox seems happy to display the scrollbars.

    Also…the scrollbars DO appear under IE in the SyntaxHighlighters settings page…which again made me wonder if it’s a conflict with the Atahualpa theme.

    Any help would be much appreciated.

    Thanks…

    …Bill

  • #450 written by Alex (Viper007Bond) 
    about 1 month ago

    In Reply To Bill Hollings:

    If it works on the settings page but not on your main site, then it’s gotta be some CSS in your theme doing it.

  • #451 written by Roy 
    about 1 month ago

    This plugin looks great. I’ve given it a try, and it’s exactly what I need functionally.

    Two questions:

    1) I’d like to make the line number area look different (narrower, light blue background color, and some other changes). Should I edit the appropriate shThemeX.css file or shCore.css to do that, or is there a more recommended method?

    2) I checked the “Use smart tabs” option on the settings page…but I’m not sure what it does. What I hoped it would do is allow me to use tabs in the WP code editor to align things (I never use the visual editor), but that doesn’t seem to be true. Does the option just format output nicely, or does it somehow let me insert tabs? If the former, I guess I’ll have to use a plugin like Tab Override to get code editor tab goodness.

    Thanks for a nice plugin.

  • #452 written by Alex (Viper007Bond) 
    about 1 month ago

    In Reply To Roy:

    1) Make a custom theme: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/

    2) Smart tabs makes it uses variable width tabs so things line up (if you have tabs midline). It has nothing to do with the editor, only display. Most people write their code in a proper editor and then copy/paste it into their blog.

  • #453 written by Kaan 
    about 1 month ago

    Big thank you for the plugin, works great! (using WP 3.0)

  • #454 written by Joseph Crotty 
    about 1 month ago

    WP v3.0.1
    SHE v2.3.8
    Ok, so I install SHE and give it a whirl. Create post called test. Enter the editor in visual mode and type the folowing:

    blah blah
    blah
    

    Save and preview and it’s looking king trashed:

    <br />blah blah<br />blah<br />

    What did I do wrong?

  • #455 written by Alex (Viper007Bond) 
    about 1 month ago

    In Reply To Joseph Crotty:

    Don’t rely on the preview. I don’t believe it works 100% correctly. View the actual post normally and see if it’s still not working.

    Also look at it in HTML view to make sure it’s okay.

  • #456 written by Ellimist 
    about 1 month ago

    Selecting code also leads to the selection of the line numbers. A quick check reveals that this isn’t the case on Alex Gorbatchev’s website. Something must be off in the WordPress implementation.

    I’d like you to look into this.

  • #457 written by Alex (Viper007Bond) 
    about 1 month ago

    In Reply To Ellimist:

    His website is using the recently released 3.x version of his script. I haven’t had time to make the changes necessary for my plugin to support the newer version.

    In the 2.x version of his script that my plugin still uses, code can be copied using the toolbar in the upper-right of the code box (hover over the code).

  • #458 written by Ellimist 
    about 4 weeks ago

    Yes, I didn’t notice it till now. Thanks! :D

  • #459 written by silant 
    about 3 weeks ago

    it doesn’t work my wordpress blog! Can you help me? I try putting the tags and the code inside of it but nothing happens!

  • #460 written by Roy 
    about 3 weeks ago

    Forgive my ignorance on this one, but looking through code hasn’t helped me figure out the answer.

    I’d like to include both CSS and HTML all in one snippet. I can use the HTML shortcode just fine, and it doesn’t look that bad, but I’d love to have the CSS be formatted like CSS (right colors, etc.) and HTML formatted like HTML. The htmlscript option isn’t the right answer, obviously.

    Is this doable? I suspect not, but hey, it’s worth asking.

    And I’ll add my voice the chorus of folks asking for the 3.x features in Evolved. It looks like Alex has included some dang nice features. It’ll be great when those show up in your WordPress version. But I realize you have other things to do in your life :)

  • #461 written by Alex (Viper007Bond)
    about 3 weeks ago

    In Reply To silant:

    silant: Can you start a new thread here please? http://wordpress.org/tags/syntaxhighlighter?forum_id=10#postform

    Thanks.

  • #462 written by Alex (Viper007Bond)
    about 3 weeks ago

    In Reply To Roy:

    Actually htmlscript is exactly what you want. It enables HTML highlighting inside of another language.

    [css htmlscript="true"]HTML and CSS here[/css]
  • #463 written by Roy 
    about 3 weeks ago

    Ah…start with CSS as the core language, then include HTML. Didn’t think of that. I was going the other way. Thanks for the tip.

  • #464 written by Michael Rockett 
    about 2 weeks ago

    Love this plugin, but if only it would work…

    I have WP 3.0.1 and BuddyPress 1.2.5.2 and whenever I post code (any lang) it does not filter in line breakes. So a piece of code that should be twenty lines, becomes one line. Is it a wordpress 3 thing?

    thanks in advance :)

  • #465 written by Michael Rockett 
    about 2 weeks ago

    Not to worry – was being really dumb.

    WP-beautifier screwed everythin up.

    absolutely awesome plugin – just what I need. :)

  • #466 written by Christian Selch 
    about 2 weeks ago

    Hallo!

    Is it possible e this plugin will be updated to use the 3.X code-base instead of 2.X?

    Best regards

  • #467 written by Alex (Viper007Bond)
    about 2 weeks ago

    In Reply To Christian Selch:

    Read up. ;)

    That’s the plan, I just haven’t had time.

  • #468 written by daubsi 
    about 2 weeks ago

    Is it possible to use this plugin to do an auto-indent? Manually indenting all the loop bodies is very annoying… By now I haven’t found a plugin which can do this? This should be possible, shouldn’t it?

  • #469 written by Alex (Viper007Bond)
    about 2 weeks ago

    In Reply To daubsi:

    I think most people write their code in a proper code editor and then copy/paste it into their posts. Tabs will stay if you do that.

  • #470 written by Peter 
    about 1 week ago

    Gosh, it’s probably in the comments somewhere, but you might want to mention on the main page or in the documentation that the language tags need to be lowercase.

  • #471 written by Alex (Viper007Bond)
    about 1 week ago

    In Reply To Peter:

    I wasn’t aware they needed to be. The shortcode API might be case sensitive — I’m not sure. I’ll investigate.

  • #472 written by Dave Stewart 
    about 1 week ago

    Great plugin, terrible CSS!

    It is SO hard to override anything because of

    a) Too many !important tags in the core CSS
    b) The stylesheet is added at the end of the head section

    I am having to go in and hack core files which is a HUGE no-no!

    Any chance of you sorting this out?

    Cheers,
    Dave

  • #473 written by andy 
    about 1 week ago

    Is it possible to turn off just the line numbers? I see no reason to have line numbers for small snippets. But I would like to keep the alternating row colors and the copy and paste popup thing.

    Maybe you can have a sentence or two on how to use your plugin for us newbies not familiar with syntaxhighlighter or WordPress. Looked at comments to figure out the tag thing.

    Great plugin!.

  • #474 written by Alex (Viper007Bond)
    about 1 week ago

    In Reply To Dave Stewart:

    If you’re gonna bitch, at least submit a patch. ;)

    I didn’t write the CSS and the !important tags are there to make sure your theme doesn’t completely screw up the formatting. They’re there for good reason.

    You can easily make your own theme so you don’t have to hack core files: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/

    As for the bottom of the head, I couldn’t think of a better way to do it while still loading the stylesheets using Javascript. However I just realized this very moment that I could use a placeholder element and add it after that placeholder element. Then you could hook later into wp_head and output additional CSS then. I’ll add this to my todo list for v3.

  • #475 written by Alex (Viper007Bond)
    about 1 week ago

    In Reply To andy:

    Look at the bottom of the settings page. All of the shortcode parameters are fully documented. ;)

  • #476 written by Swashata Ghosh 
    about 4 days ago

    Hi! Thanks a lot for this great plugin. I was wondering if it is possible for you to spend some of your time to add a feature for adding custom tags before and after the generated

    <pre>...</pre>

    The reason I am asking this is, some intext advertising like infolinks adds their highlight code to the text inside the syntaxhighlighter thing and the code inside gets messed up. The solution is like adding

    <!--INFOLINKS_OFF-->

    before and

    <!--INFOLINKS_ON-->

    after the syntaxhighlighter shortcode. But every time it has to be done manually! :( … I have looked into your plugin code and can incorporate the feature, but I dont want to mess with the core of the plugin as when you update the plugin I will have to do that again! So was wondering if you can find some time to do that for us :)

  • #477 written by Alex (Viper007Bond)
    about 4 days ago

    In Reply To Swashata Ghosh:

    I’ll add a filter in my next major release that you can use to add them.

  • #478 written by Swashata 
    about 3 days ago

    In Reply To Alex (Viper007Bond):

    Great! I have a feeling that you will add the latest version of syntax highlighter to your next major release :D Eagerly waiting for that!

  • #479 written by Alex (Viper007Bond)
    about 3 days ago

    In Reply To Swashata:

    Yep. :) I just gotta find time to work on it.

  • #480 written by iTechRoom 
    about 1 day ago

    I can’t help thanking you for such a wonderful plugin. Keep on updating.

1 ... 3 4 5

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

Page generated with 2 queries in 0.59443 seconds ( 99.96% PHP, 0.04% MySQL )