RSS Feeds
Follow me on Twitter!
- Home
- About
- Archives
- My WordPress Plugins
- Clean Archives Reloaded
- Disable Trackbacks
- jQuery Lightbox For Native Galleries
- Local Time
- Regenerate Thumbnails
- Registered Users Only
- SyntaxHighlighter Evolved
- Viper’s Video Quicktags
- WordPress Admin Bar
- WordPress Download Counter
- WordPress.org One-Click Install
- YOURLS: Short URL Widget
- [Other Plugins]
- [Discontinued Plugins]
- Donate
- Contact
March 29th, 20092009-03-29T07:13:39ZF jS, Y - 12:13 AM2009-03-29T07:13:39Zg:i A
As your own example clearly shows if the first line is long it ends up being partially hidden behind the toolbox. Also if there is only one line the toolbox sticks out beneath it.
March 29th, 20092009-03-29T07:15:47ZF jS, Y - 12:15 AM2009-03-29T07:15:47Zg:i A
Carbonize on March 29th, 2009 at 12:13 AM2009-03-29T07:13:39ZF jS, Y \a\t g:i A wrote:
Yes, I noticed those CSS issues as well (I didn’t write the Javascript or CSS). Things like that, especially the overlapping, are hard to control though AFAIK.
You can easily disable the toolbar via the plugin’s Settings page though or even on a per-code box basis.
March 30th, 20092009-03-30T11:30:06ZF jS, Y - 4:30 AM2009-03-30T11:30:06Zg:i A
Hi, I did find some bugs in the script:
1. trying to put XHTML code – removes ‘p’ tag. I have to use the HTML mode but when I change to the Visual mode, is still seen but disappears with saving or rechanging to the HTML mode.
2. code Cpp or Javascript (not tested more) removes many tabs/spaces. The same thing – I have to put it in the HTML mode and not change anything in the Visual mode.
Those are first bugs I’ve seen recently.
March 30th, 20092009-03-30T12:25:20ZF jS, Y - 5:25 AM2009-03-30T12:25:20Zg:i A
Updated and now now code on my site is highlighted. Any ideas?
March 30th, 20092009-03-30T14:43:46ZF jS, Y - 7:43 AM2009-03-30T14:43:46Zg:i A
Hi,
where can I get the previouse Syntax-Highlighter version (without “evolved”
)? I don’t like the new toolbar with flash, so I want the old plain text version back.
Thank You!
March 30th, 20092009-03-31T00:50:56ZF jS, Y - 5:50 PM2009-03-31T00:50:56Zg:i A
Namek on March 30th, 2009 at 4:30 AM2009-03-30T11:30:06ZF jS, Y \a\t g:i A wrote:
I can confirm that issue and that it’s being caused by the TinyMCE plugin this WordPress plugin adds. I’ll see if I can fix it.
Namek on March 30th, 2009 at 4:30 AM2009-03-30T11:30:06ZF jS, Y \a\t g:i A wrote:
This is TinyMCE at work (it strips tabs). Nothing I can do about it AFAIK.
March 30th, 20092009-03-31T00:51:56ZF jS, Y - 5:51 PM2009-03-31T00:51:56Zg:i A
DJ on March 30th, 2009 at 5:25 AM2009-03-30T12:25:20ZF jS, Y \a\t g:i A wrote:
I don’t understand what you mean.
March 30th, 20092009-03-31T00:55:01ZF jS, Y - 5:55 PM2009-03-31T00:55:01Zg:i A
Stefan Kiesel on March 30th, 2009 at 7:43 AM2009-03-30T14:43:46ZF jS, Y \a\t g:i A wrote:
The only part of the toolbar that is Flash is the copy-to-clipboard button and it was Flash based in the old version as well. Infact it has to be Flash in order for it to work.
But if you really want the old version (which I don’t recommend), you can download it here:
http://downloads.wordpress.org/plugin/syntaxhighlighter.1.1.2.zip
March 30th, 20092009-03-31T01:05:31ZF jS, Y - 6:05 PM2009-03-31T01:05:31Zg:i A
check my site http://lifeofajackass.com and you will see that since I’ve updated my plugin it doesn’t highlight the code anymore. any ideas? I downloaded the older version and if you don’t know what is wrong i will go back to the old one i guess.
March 31st, 20092009-03-31T10:08:46ZF jS, Y - 3:08 AM2009-03-31T10:08:46Zg:i A
DJ on March 30th, 2009 at 6:05 PM2009-03-31T01:05:31ZF jS, Y \a\t g:i A wrote:
Sorry, Akismet caught your comments as spam.
Anyway, you don’t appear to be using my plugin shortcodes in your posts (, , , etc.). My plugin can’t just somehow detect that you’re posting code and highlight it — you have to tell it to do so by wrapping it in shortcodes.
However if you do have it wrapped and my plugin is indeed broken, please pastebin the contents of your post (as in what you see in your post editor): http://viper007bond.pastebin.com/
Also: what version of WordPress are you using?
March 31st, 20092009-03-31T12:03:22ZF jS, Y - 5:03 AM2009-03-31T12:03:22Zg:i A
I’m using the latest WordPress 2.7.1.
http://viper007bond.pastebin.com/m19a451e0
You can check out my site posts and my page GravatarGet and it doesn’t work at all. Thanks.
March 31st, 20092009-03-31T14:09:09ZF jS, Y - 7:09 AM2009-03-31T14:09:09Zg:i A
Viper007Bond on March 30th, 2009 at 5:55 PM2009-03-31T00:55:01ZF jS, Y \a\t g:i A wrote:
I don’t like the new toolbar with the big fat buttons
. Thank you.
March 31st, 20092009-03-31T14:25:52ZF jS, Y - 7:25 AM2009-03-31T14:25:52Zg:i A
I would love the update, if only it worked on my site. lol I’ll have to go back to the old one until someone figures out why it doesn’t work on mine.
March 31st, 20092009-03-31T14:41:23ZF jS, Y - 7:41 AM2009-03-31T14:41:23Zg:i A
By the way, I’m not yousing Mac OSX with Safari. I use Windows Vista with Iron (Chrome) Browser.
April 2nd, 20092009-04-02T18:58:09ZF jS, Y - 11:58 AM2009-04-02T18:58:09Zg:i A
My evaluation: other than following 2 problems, it works fine as expected for me.
Icon area is blocking part of first 2 lines, obscuring part of code, which happens often for single-line long code.
Somehow it is not transforming LF to CR/LF on Windows during cut and paste, certain editors can’t handle the Unix style ‘n’.
April 2nd, 20092009-04-02T21:24:45ZF jS, Y - 2:24 PM2009-04-02T21:24:45Zg:i A
Abel Cheung on April 2nd, 2009 at 11:58 AM2009-04-02T18:58:09ZF jS, Y \a\t g:i A wrote:
I noticed this as well. Since the toolbox is floated or whatever, I don’t think there’s much that can be done. You can however disable the toolbox via the shortcode parameters (set “light” to “true” or “toolbar” to “false”). You can do it globally (i.e. the default) via the settings page.
Abel Cheung on April 2nd, 2009 at 11:58 AM2009-04-02T18:58:09ZF jS, Y \a\t g:i A wrote:
Eh? Are you talking about that rn vs. n stuff? Or something else?
For what it’s worth, I write all my code in Windows and have had to issues when I copy paste, although my editor may use Unix style line breaks, I’m not sure.
April 4th, 20092009-04-04T18:16:43ZF jS, Y - 11:16 AM2009-04-04T18:16:43Zg:i A
Yes, thanks, at least that does the job.
Probably that’s it. I frequently switch back and forth between Windows and Linux. Will do more testing later to confirm if it’s due to differences between platforms or whatever.
April 4th, 20092009-04-04T23:40:41ZF jS, Y - 4:40 PM2009-04-04T23:40:41Zg:i A
Great plugin! Thanks. Tool bar can be fixed by changing the top position in syntaxhighlighter/syntaxhighlighter/styles/shCore.css from 0 to -25px around line 146:
.syntaxhighlighter .toolbar{
position: absolute !important;
right: 0px !important;
top:-25px !important;
font-size: 1px !important;
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
}
This will move the toolbar above the first line.
April 9th, 20092009-04-09T07:43:28ZF jS, Y - 12:43 AM2009-04-09T07:43:28Zg:i A
Any idea what’s happening on my website with this plugin?
It seems a bit garbled in FireFox…
http://blog.leenarts.net/2008/03/31/i-really-ought-to-sleep/
April 9th, 20092009-04-09T11:19:03ZF jS, Y - 4:19 AM2009-04-09T11:19:03Zg:i A
Jeroen Leenarts on April 9th, 2009 at 12:43 AM2009-04-09T07:43:28ZF jS, Y \a\t g:i A wrote:
It’s your theme’s CSS. Delete the
code, pre { ... }stuff.April 9th, 20092009-04-09T18:00:43ZF jS, Y - 11:00 AM2009-04-09T18:00:43Zg:i A
Thanks a million.
It looks perfect now.
April 13th, 20092009-04-13T15:18:35ZF jS, Y - 8:18 AM2009-04-13T15:18:35Zg:i A
Please check out this http://lifeofajackass.com/2009/03/rcon-c/
using
using works great for my vb.net code. Any idea way ‘c#’ isn’t being highlighted?
April 13th, 20092009-04-13T23:34:35ZF jS, Y - 4:34 PM2009-04-13T23:34:35Zg:i A
DJ on April 13th, 2009 at 8:18 AM2009-04-13T15:18:35ZF jS, Y \a\t g:i A wrote:
Because that’s not a valid tag. See the middle column:
http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes
Use “csharp” or “c-sharp”.
April 16th, 20092009-04-16T07:51:19ZF jS, Y - 12:51 AM2009-04-16T07:51:19Zg:i A
Hi,
I made a little change to your plugin to make it parse comment:
add_filter( 'comment_text', array(&$this, 'parse_shortcodes'), 9 );
April 16th, 20092009-04-16T10:03:52ZF jS, Y - 3:03 AM2009-04-16T10:03:52Zg:i A
silent on April 16th, 2009 at 12:51 AM2009-04-16T07:51:19ZF jS, Y \a\t g:i A wrote:
Whoops, meant to make that an option on the settings page.
April 16th, 20092009-04-17T02:33:15ZF jS, Y - 7:33 PM2009-04-17T02:33:15Zg:i A
How can i use it?
where can i find the mannul?
April 18th, 20092009-04-18T09:01:59ZF jS, Y - 2:01 AM2009-04-18T09:01:59Zg:i A
I don’t like the new version either. The new toolbar stands out too much and takes up too much space for code blocks with one line of code. I liked the text version better. I also don’t like the word wrapping.
Is it possible to make the toolbar type and word wrapping options a setting on a future version of this plugin? I love the plugin, but hate this release.
April 18th, 20092009-04-18T09:39:34ZF jS, Y - 2:39 AM2009-04-18T09:39:34Zg:i A
Great! Thank you! Brilliant contribution to the blogosphere!
April 18th, 20092009-04-19T02:05:57ZF jS, Y - 7:05 PM2009-04-19T02:05:57Zg:i A
BigDog on April 16th, 2009 at 7:33 PM2009-04-17T02:33:15ZF jS, Y \a\t g:i A wrote:
Visit the settings page and scroll down.
Chris on April 18th, 2009 at 2:01 AM2009-04-18T09:01:59ZF jS, Y \a\t g:i A wrote:
Did you even read the post at the top of the page where it describes “light” mode? Or the manual at the bottom of the settings page? I don’t know why I bother to write that stuff if no one takes the time to read it…
Chris on April 18th, 2009 at 2:01 AM2009-04-18T09:01:59ZF jS, Y \a\t g:i A wrote:
No. I did not write the highlighting package and I have no control over the features it has. Take it up with Alex Gorbatchev.
You can “fix” line wrapping via CSS though:
.syntaxhighlighter {white-space: pre !important;
overflow: auto !important;
}
It gets weird once you scroll to the right though (background colors and such). You’re on your own for fixing that.
April 28th, 20092009-04-28T17:49:46ZF jS, Y - 10:49 AM2009-04-28T17:49:46Zg:i A
SyntaxHighlighter seems to be working fine for me for existing posts with the code, but if I create any new posts and wrap the normal code tags around it I would use, it deletes everything between the opening and closing tags when I save the post. Oddly enough, previewing the post will keep the code in between the tags.
May 1st, 20092009-05-01T11:14:13ZF jS, Y - 4:14 AM2009-05-01T11:14:13Zg:i A
?????????????
May 4th, 20092009-05-04T15:06:57ZF jS, Y - 8:06 AM2009-05-04T15:06:57Zg:i A
Love the plugin. One question: the plugin appears to strip leading blanks from the presented code. See http://blackrobes.net/code/2009/05/ile-rpg-floor/. Viewing the source shows the leading blanks are there. Copy/paste also removes the leading blanks.
Only reason I bring it up is on i5/OS (AS/400, iSeries, System i) language RPG, column spacing is important. Code starts on column 6.
I will soon start working on an ILE RPG syntax file, in the meantime using text.
May 4th, 20092009-05-04T15:09:32ZF jS, Y - 8:09 AM2009-05-04T15:09:32Zg:i A
Jim on April 28th, 2009 at 10:49 AM2009-04-28T17:49:46ZF jS, Y \a\t g:i A wrote:
I’ve been getting that exact same problem since I first wanted to use this plug-in, and for that reason I had to deactivate it. I make a new post in HTML mode and put some code in between the [/java] tags. When I save it, I get the warning:
Warning: htmlspecialchars_decode() expects parameter 1 to be string, NULL given in /home/pensaorg/public_html/wp-includes/compat.php on line 105And the code is gone! (I’m using the latest version of Wordpress)
May 4th, 20092009-05-04T16:13:52ZF jS, Y - 9:13 AM2009-05-04T16:13:52Zg:i A
Loyd Goodbar on May 4th, 2009 at 8:06 AM2009-05-04T15:06:57ZF jS, Y \a\t g:i A wrote:
I experimented and saw that the code uses the first line of text to determine how many leading spaces to exclude. I have worked around the issue by inserting a line with characters to stand in for leading spaces. See http://blackrobes.net/code/ile-rpg-floor/ for revised.
May 4th, 20092009-05-04T23:44:21ZF jS, Y - 4:44 PM2009-05-04T23:44:21Zg:i A
Saulo Silva on May 4th, 2009 at 8:09 AM2009-05-04T15:09:32ZF jS, Y \a\t g:i A wrote:
I have a same problem! Please advice! Thank you in advance!
May 4th, 20092009-05-05T03:18:36ZF jS, Y - 8:18 PM2009-05-05T03:18:36Zg:i A
Saulo Silva on May 4th, 2009 at 8:09 AM2009-05-04T15:09:32ZF jS, Y \a\t g:i A wrote:
You really should upgrade to PHP5. PHP4 is dead.
However if that is not possible, then you need to fix the WordPress bug by applying this patch:
https://core.trac.wordpress.org/changeset/10543/trunk/wp-includes/compat.php
May 5th, 20092009-05-05T15:11:54ZF jS, Y - 8:11 AM2009-05-05T15:11:54Zg:i A
I have always loved this highlighter, but my font size is huge? What can I do?
May 6th, 20092009-05-06T09:26:08ZF jS, Y - 2:26 AM2009-05-06T09:26:08Zg:i A
Christina on May 5th, 2009 at 8:11 AM2009-05-05T15:11:54ZF jS, Y \a\t g:i A wrote:
Edit your theme’s stylesheet.
.syntaxhighlighter { font-size: 12px !important; }I think I’ll include a setting for it in an upcoming release.
May 6th, 20092009-05-07T03:09:20ZF jS, Y - 8:09 PM2009-05-07T03:09:20Zg:i A
Viper007Bond on May 4th, 2009 at 8:18 PM2009-05-05T03:18:36ZF jS, Y \a\t g:i A wrote:
You really should upgrade to PHP5. PHP4 is dead.
However if that is not possible, then you need to fix the WordPress bug by applying this patch:
https://core.trac.wordpress.org/changeset/10543/trunk/wp-includes/compat.php/quote
Worked like a charm! Thanks!
May 7th, 20092009-05-07T14:41:08ZF jS, Y - 7:41 AM2009-05-07T14:41:08Zg:i A
Viper007Bond on May 6th, 2009 at 2:26 AM2009-05-06T09:26:08ZF jS, Y \a\t g:i A wrote:
Edit your theme’s stylesheet.
.syntaxhighlighter { font-size: 12px !important; }I think I’ll include a setting for it in an upcoming release.[/quote]
Thanks so much! However, when I added it to the theme’s stylesheet it didn’t change. Any other idea? Maybe I’m putting it in the wrong area ( I tried the bottom of the stylesheet).
May 7th, 20092009-05-07T14:52:14ZF jS, Y - 7:52 AM2009-05-07T14:52:14Zg:i A
Christina on May 7th, 2009 at 7:41 AM2009-05-07T14:41:08ZF jS, Y \a\t g:i A wrote:
I noticed the same thing. Dunno why that doesn’t work.
Add this right before
</head>in your header.php:<style type="text/css">.syntaxhighlighter { font-size: 12px !important; }</style>May 7th, 20092009-05-07T15:02:11ZF jS, Y - 8:02 AM2009-05-07T15:02:11Zg:i A
Viper007Bond on May 7th, 2009 at 7:52 AM2009-05-07T14:52:14ZF jS, Y \a\t g:i A wrote:
I noticed the same thing. Dunno why that doesn’t work.
Add this right before
</head>in your header.php:<style type="text/css">.syntaxhighlighter { font-size: 12px !important; }</style>[/quote]Much better! Thanks!
May 7th, 20092009-05-07T15:17:14ZF jS, Y - 8:17 AM2009-05-07T15:17:14Zg:i A
Did you add the entire code to CSS or just this line: .syntaxhighlighter { font-size: 12px !important; } ?
Everything works for me in this case.
May 7th, 20092009-05-07T15:59:58ZF jS, Y - 8:59 AM2009-05-07T15:59:58Zg:i A
I added the entire thing and it’s working now. Thanks.
May 11th, 20092009-05-11T22:28:01ZF jS, Y - 3:28 PM2009-05-11T22:28:01Zg:i A
I like this plugin but since I updated to v.2.1.10 every time I check CSS validation, the W3C CSS Validator reports 1 error:
http://post-scriptum.info/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css?ver=2.0.320.syntaxhighlighter .lines.no-wrap | Property overflow-y doesn't exist in CSS level 2.1 but exists in [css3] : hiddenAny advice?
May 13th, 20092009-05-13T12:23:05ZF jS, Y - 5:23 AM2009-05-13T12:23:05Zg:i A
Hi, thanks a lot for great plugins. By the way, using php code in version 1.1.2, I noticed that !empty($description) shows !empty empty($description), i.e., double empty. Is this the case only for my environment ?
May 13th, 20092009-05-14T03:47:34ZF jS, Y - 8:47 PM2009-05-14T03:47:34Zg:i A
Fingli on May 11th, 2009 at 3:28 PM2009-05-11T22:28:01ZF jS, Y \a\t g:i A wrote:
Yes, ignore the “error” as it’s not really an error. Modern browsers will use it, old browsers will ignore it.
May 13th, 20092009-05-14T03:48:11ZF jS, Y - 8:48 PM2009-05-14T03:48:11Zg:i A
Josef on May 13th, 2009 at 5:23 AM2009-05-13T12:23:05ZF jS, Y \a\t g:i A wrote:
I do not support or fix bugs in old versions of my plugins.
May 15th, 20092009-05-15T16:46:05ZF jS, Y - 9:46 AM2009-05-15T16:46:05Zg:i A
Your plugin is greater than any other syntax hilight plugin. Really great. Thank you very much.
Can you tell me how I can prevent to change from > mark to > in bash(or shell) mode?
May 15th, 20092009-05-15T22:32:55ZF jS, Y - 3:32 PM2009-05-15T22:32:55Zg:i A
Seems on May 15th, 2009 at 9:46 AM2009-05-15T16:46:05ZF jS, Y \a\t g:i A wrote:
It’s a bug with the highlighting script, something I don’t have control over.
http://bitbucket.org/alexg/syntaxhighlighter/issue/25/bash-shell-script-double-escapes
May 15th, 20092009-05-16T04:13:30ZF jS, Y - 9:13 PM2009-05-16T04:13:30Zg:i A
Viper007Bond on May 15th, 2009 at 3:32 PM2009-05-15T22:32:55ZF jS, Y \a\t g:i A wrote:
It’s a bug with the highlighting script, something I don’t have control over.
http://bitbucket.org/alexg/syntaxhighlighter/issue/25/bash-shell-script-double-escapes/quote
Oh, I understand what you mean. I think it may misunderstand lt and gt as bash keyword. I removed that keywords from shBrushBash.js, and now it works find. Thanks and have nice day.
May 15th, 20092009-05-16T06:03:36ZF jS, Y - 11:03 PM2009-05-16T06:03:36Zg:i A
Under FF 3.0.10, in your “wrap” example, lines of text are falling outside of the content box.
Screenshot: http://tinyurl.com/qff4pr
May 15th, 20092009-05-16T06:46:33ZF jS, Y - 11:46 PM2009-05-16T06:46:33Zg:i A
Pablo DiCiacco on May 15th, 2009 at 11:03 PM2009-05-16T06:03:36ZF jS, Y \a\t g:i A wrote:
That is not my example. I am not Alex Gorbatchev and did not write the highlighting script.
However the demo at http://alexgorbatchev.com/wiki/SyntaxHighlighter:Demo:wrap-lines works perfectly for me in Firefox 3.0.10.
May 18th, 20092009-05-18T15:03:05ZF jS, Y - 8:03 AM2009-05-18T15:03:05Zg:i A
Hi Viper!
Very nice plugin, but it breaks my XHTML validation
because ‘;’ character is not allowed in the value of an attribute. And you use it in the class for pre tag.
i.e.
class="brush: php; light: true;"I would appreciate very much if you can change this for making the output 100% XHTML compliant.
May 18th, 20092009-05-19T00:50:54ZF jS, Y - 5:50 PM2009-05-19T00:50:54Zg:i A
Samuel on May 18th, 2009 at 8:03 AM2009-05-18T15:03:05ZF jS, Y \a\t g:i A wrote:
Yes it is…
Take this for example:
<pre style="border: 1px; text-align: center;">That’s perfectly valid. It’s no different with classes.And if it isn’t allowed, then why does this page you’re looking at now validate?
May 19th, 20092009-05-19T09:40:36ZF jS, Y - 2:40 AM2009-05-19T09:40:36Zg:i A
I’m sorry Viper, but this is what I get when use the http//validator.w3c.org :
1. Error Line 165, Column 23: character “;” is not allowed in the value of attribute “class”
2. Error Line 165, Column 36: character “;” is not allowed in the value of attribute “class”
3. Error Line 170, Column 23: character “;” is not allowed in the value of attribute “class”
You can check by yourself here. Only 3 errors, only these 3.
So that it’s not what I say, it’s what say the World Wide Web Corsontium, maybe they knows more than you and me about valid XTHML code
And by the way… this pages does not validate, it gives 6 errors and 5 warnings (nothing about the above, but you can be sure that if you fix these, you will get above errors later).
May 19th, 20092009-05-19T19:10:43ZF jS, Y - 12:10 PM2009-05-19T19:10:43Zg:i A
Hi I installed the plugin and it works great, the only screw up is when I use “Copy to clipboard” feature. Check it out at http://codecorner.galanter.net/2009/05/19/global-chart-type-for-dundas-chart-control/ when I copy code, it is copied with a bunch of codes. Any way to avoid this? Thanks!
May 20th, 20092009-05-20T09:59:40ZF jS, Y - 2:59 AM2009-05-20T09:59:40Zg:i A
Samuel on May 19th, 2009 at 2:40 AM2009-05-19T09:40:36ZF jS, Y \a\t g:i A wrote:
It’s because you’re using XHTML 1.1 rather than XHTML 1.0 which is what I’m using (Transitional as I’m lazy, but the script will pass XHTML 1.0 Strict).
Anyway, as I said before, nothing I can do about it. It’s not my code and I do not maintain it. Take it up with the author.
May 20th, 20092009-05-20T16:08:15ZF jS, Y - 9:08 AM2009-05-20T16:08:15Zg:i A
Ok. Thanks anyway
May 21st, 20092009-05-21T15:03:11ZF jS, Y - 8:03 AM2009-05-21T15:03:11Zg:i A
Bump. Any word on removing codes from code copied to clipboard?
May 21st, 20092009-05-21T22:08:36ZF jS, Y - 3:08 PM2009-05-21T22:08:36Zg:i A
Yuriy on May 21st, 2009 at 8:03 AM2009-05-21T15:03:11ZF jS, Y \a\t g:i A wrote:
I am unable to reproduce. Perhaps it’s TinyMCE at fault, or the original code you posted.
May 29th, 20092009-05-29T09:19:30ZF jS, Y - 2:19 AM2009-05-29T09:19:30Zg:i A
Hi Viper007Bond,
I create small patch for your plugin for highlight comments on my blog (and some small fix).
You can download full archive from my blog http://anton.shevchuk.name/wp-demo/syntaxhighlighter_2.1.1.zip
May 29th, 20092009-05-29T11:53:16ZF jS, Y - 4:53 AM2009-05-29T11:53:16Zg:i A
Anton Shevchuk on May 29th, 2009 at 2:19 AM2009-05-29T09:19:30ZF jS, Y \a\t g:i A wrote:
Code in comments was purposefully left out (I plan on implementing it as an option in the future) and I’m pretty sure further modifications are needed, namely in encoding the code before it’s sent to the database.
As for the rest of it, thanks.
June 1st, 20092009-06-01T19:18:59ZF jS, Y - 12:18 PM2009-06-01T19:18:59Zg:i A
Hello! First of all I wish to thanks you for the awesome plugin! Secondly, I’m having a weird problem with XHTML. I won’t highlight line “6″ or “06″. I’m clueless. Any ideas?
June 1st, 20092009-06-01T22:18:30ZF jS, Y - 3:18 PM2009-06-01T22:18:30Zg:i A
I have installed you plugin and I cannot seem to get to validate with another of my plugins enabled (NextGen Gallery for wordpress). It gives me the error:
Line 852, Column 39: document type does not allow element "meta" here <meta name='NextGEN' content='1.2.1' /&rtMy site is:
Tom’s Blog
Heres the link to validation:
Validation Link
Thank you and any response would be awesome!
June 1st, 20092009-06-01T22:43:36ZF jS, Y - 3:43 PM2009-06-01T22:43:36Zg:i A
Hello. I want to use the PlugIn without WP_Head and WP_Footer. Can you post the code for head and footer to insert manually? Thanx.
June 1st, 20092009-06-01T23:53:14ZF jS, Y - 4:53 PM2009-06-01T23:53:14Zg:i A
motionman95 on June 1st, 2009 at 12:18 PM2009-06-01T19:18:59ZF jS, Y \a\t g:i A wrote:
I just formatted my PC and haven’t reinstalled Apache/MySQL/PHP yet. I’ll try and reproduce the issue in a few days.
Tom on June 1st, 2009 at 3:18 PM2009-06-01T22:18:30ZF jS, Y \a\t g:i A wrote:
NextGEN appears to be improperly coded. Nothing I can do about it.
Joerg on June 1st, 2009 at 3:43 PM2009-06-01T22:43:36ZF jS, Y \a\t g:i A wrote:
Those are required theme hooks (WordPress.org won’t allow the submission of themes without those hooks for example). As such, no I will not spend my time helping you. It’s possible to do, but it makes to sense for me to waste the time going through how to do it when there’s a simple fix — adding the hooks.
June 1st, 20092009-06-02T00:20:39ZF jS, Y - 5:20 PM2009-06-02T00:20:39Zg:i A
Vanilla Man on May 4th, 2009 at 4:44 PM2009-05-04T23:44:21ZF jS, Y \a\t g:i A wrote:
I’m getting this same error – code that’s inserted between the highlighter tags randomly disappears. Happens in IE7, IE8 and Firefox 3. Using WordPress 2.7.1. Anyone have any idea what’s happening or how to fix it?
June 1st, 20092009-06-02T05:55:57ZF jS, Y - 10:55 PM2009-06-02T05:55:57Zg:i A
Cool, can’t wait until you do! Also, is it possible to use the text version of the toolbar? Like here: http://syntaxhighlighter.googlecode.com
June 2nd, 20092009-06-02T11:54:59ZF jS, Y - 4:54 AM2009-06-02T11:54:59Zg:i A
Viper007Bond on June 1st, 2009 at 4:53 PM2009-06-01T23:53:14ZF jS, Y \a\t g:i A wrote:
NextGEN appears to be improperly coded. Nothing I can do about it.[/quote]
Thank you for the prompt response I really appreciate it! I will bring the issue up with NextGen plugin author.
June 2nd, 20092009-06-02T13:05:16ZF jS, Y - 6:05 AM2009-06-02T13:05:16Zg:i A
motionman95 on June 1st, 2009 at 10:55 PM2009-06-02T05:55:57ZF jS, Y \a\t g:i A wrote:
Not that I’m aware of, no.
June 2nd, 20092009-06-02T13:06:00ZF jS, Y - 6:06 AM2009-06-02T13:06:00Zg:i A
Steve on June 1st, 2009 at 5:20 PM2009-06-02T00:20:39ZF jS, Y \a\t g:i A wrote:
I’m getting this same error – code that’s inserted between the highlighter tags randomly disappears. Happens in IE7, IE8 and Firefox 3. Using WordPress 2.7.1. Anyone have any idea what’s happening or how to fix it?[/quote]
Viper007Bond on May 4th, 2009 at 8:18 PM2009-05-05T03:18:36ZF jS, Y \a\t g:i A wrote:
June 3rd, 20092009-06-03T07:40:50ZF jS, Y - 12:40 AM2009-06-03T07:40:50Zg:i A
Viper,
Is it possible to call the plugin function within another plugin?
I am using the wp-ds-faq plugin. When I use the syntaxhighlighter shortcode within the wp-ds-faq “add answer” the result does not execute the highlighing.
Thanks,
Pablo
June 3rd, 20092009-06-03T10:43:58ZF jS, Y - 3:43 AM2009-06-03T10:43:58Zg:i A
Pablo DiCiacco on June 3rd, 2009 at 12:40 AM2009-06-03T07:40:50ZF jS, Y \a\t g:i A wrote:
global $SyntaxHighlighter; $yourtext = apply_filters( 'the_content', array( $SyntaxHighlighter, 'parse_shortcodes' ), $yourtext );June 3rd, 20092009-06-04T00:17:58ZF jS, Y - 5:17 PM2009-06-04T00:17:58Zg:i A
Viper007Bond on June 3rd, 2009 at 3:43 AM2009-06-03T10:43:58ZF jS, Y \a\t g:i A wrote:
global $SyntaxHighlighter; $yourtext = apply_filters( 'the_content', array( $SyntaxHighlighter, 'parse_shortcodes' ), $yourtext );[/quote]Thank you. Do I place that code in the other plugin or in my wordpress files somewhere?
June 4th, 20092009-06-04T08:35:33ZF jS, Y - 1:35 AM2009-06-04T08:35:33Zg:i A
Pablo DiCiacco on June 3rd, 2009 at 5:17 PM2009-06-04T00:17:58ZF jS, Y \a\t g:i A wrote:
global $SyntaxHighlighter; $yourtext = apply_filters( 'the_content', array( $SyntaxHighlighter, 'parse_shortcodes' ), $yourtext );[/quote]Thank you. Do I place that code in the other plugin or in my wordpress files somewhere?[/quote]
That code is totally wrong (I somehow managed to merge add_filter and apply_filters). I gotta stop posting at 3AM. Correct code:
$yourtext = apply_filters( 'the_content', $yourtext );That goes into the plugin and you’re entirely on your own for that one.
June 4th, 20092009-06-04T08:43:59ZF jS, Y - 1:43 AM2009-06-04T08:43:59Zg:i A
motionman95 on June 1st, 2009 at 12:18 PM2009-06-01T19:18:59ZF jS, Y \a\t g:i A wrote:
Works fine for me.
makes line 6 go green.June 5th, 20092009-06-05T08:53:15ZF jS, Y - 1:53 AM2009-06-05T08:53:15Zg:i A
Thanks for this plugin,
I want to remove many tabs from toolbar in this , but i don’t known what part of what files must be edit.
June 10th, 20092009-06-11T06:40:28ZF jS, Y - 11:40 PM2009-06-11T06:40:28Zg:i A
Hi,
i just upgrade to Wordpress 2.8 and i have a problem with the Admin Panel. Wenn i activate the plugin and go to the DASHBOARD not all things are showing, i can’t drop down the menus.
Look at this picture and see what i mean:
http://www.romeolab.com/problem.png
June 11th, 20092009-06-11T07:28:38ZF jS, Y - 12:28 AM2009-06-11T07:28:38Zg:i A
Romeo on June 10th, 2009 at 11:40 PM2009-06-11T06:40:28ZF jS, Y \a\t g:i A wrote:
Whoa… I didn’t realize 2.8 had just birthed!
June 11th, 20092009-06-11T08:20:23ZF jS, Y - 1:20 AM2009-06-11T08:20:23Zg:i A
Romeo on June 10th, 2009 at 11:40 PM2009-06-11T06:40:28ZF jS, Y \a\t g:i A wrote:
It’s not my plugin as my menu works fine.
Sounds like some other plugin doesn’t like the new minify feature of WordPress (all JS files are combined and served gzipped).
June 11th, 20092009-06-11T08:40:18ZF jS, Y - 1:40 AM2009-06-11T08:40:18Zg:i A
Viper007Bond on June 11th, 2009 at 1:20 AM2009-06-11T08:20:23ZF jS, Y \a\t g:i A wrote:
It’s not my plugin as my menu works fine.
Sounds like some other plugin doesn’t like the new minify feature of WordPress (all JS files are combined and served gzipped).[/quote]
Boh.. maybe u’r right.
I have about 40 installed plugins and i deactivate all before upgrading. After upgradin i activate all one by one. An about 10 plugins show me the same problem (dashboard) and one of theme was yours. Thats why i write.. i delete cache and cookies bus the same problem. See what others say
Thx for the answer.. will try to find out wich are the plugins that makes this “bug”.
June 12th, 20092009-06-13T00:26:51ZF jS, Y - 5:26 PM2009-06-13T00:26:51Zg:i A
I have just updated my blog to use your plugin instead on SyntaxHighlighter Plus as your plugin was listed as supporting Wordpress 2.8.
I am having the a problem with indenting. When switching between Visual and HTML tabs all spacing and formatting is lost. When i disable Syntaxhighlighter Evolved the problem disappears and the formatting remains.
I have tried putting the tags inside of pre tags and without pre tags with the same thing happening.
I have tested this behaviour on both Wordpress 2.7.1 and Wordpress 2.8 with and without other plugins enabled (i only have 2).
Thanks,
Jon
June 12th, 20092009-06-13T01:31:27ZF jS, Y - 6:31 PM2009-06-13T01:31:27Zg:i A
I’m aware of the issue, but it’s essentially impossible to fix as whitespace is ignored in
<textarea>’s.June 12th, 20092009-06-13T02:44:21ZF jS, Y - 7:44 PM2009-06-13T02:44:21Zg:i A
I’m aware of the issue, but it’s essentially impossible to fix as whitespace is ignored in ’s.
If this is the case, how come whitespace within pre tags aren’t ignored when the syntax highlighter plugin is disabled.
I have also confirmed since my last comment that SyntaxHighlighter Plus doesn’t have this problem in either WP2.8 or WP2.7.1. I would prefer to stay with Evolve as it is been actively worked on.
Thanks for your quick response.
Jon
June 12th, 20092009-06-13T04:12:39ZF jS, Y - 9:12 PM2009-06-13T04:12:39Zg:i A
Hmm, then I’m not sure. It may be related to the TinyMCE plugin this plugin uses, but I barely have any experience with TinyMCE (I didn’t write the plugin).
In short, I have no idea how to fix it.
June 15th, 20092009-06-15T22:50:39ZF jS, Y - 3:50 PM2009-06-15T22:50:39Zg:i A
Any chance of having code appear in the Wordpress comments?
June 16th, 20092009-06-17T03:05:56ZF jS, Y - 8:05 PM2009-06-17T03:05:56Zg:i A
Veronica on June 15th, 2009 at 3:50 PM2009-06-15T22:50:39ZF jS, Y \a\t g:i A wrote:
In the future perhaps. I’m incredibly busy for the next month or so.
June 24th, 20092009-06-24T14:09:08ZF jS, Y - 7:09 AM2009-06-24T14:09:08Zg:i A
Hey there,
is there any way to disable shortcode execution within Syntax Highlighter shortcodes? If you’re trying to demonstrate the use of a certain shortcode in your post, then it gets executed at the moment, which is kind of not what you’d want.
Thanks for your help.
Boris
June 24th, 20092009-06-24T22:35:13ZF jS, Y - 3:35 PM2009-06-24T22:35:13Zg:i A
hi. i just installed this plugin to our wordpress blog … everything seemed to work fine but then i realized that after saving the post i created and in which i used the -tags removed the whole code between the tags – but the code still showed on the blog … !?
do you know what this could cause?
cheers. phil
June 24th, 20092009-06-25T00:30:31ZF jS, Y - 5:30 PM2009-06-25T00:30:31Zg:i A
Just wrap your example in
tags, like so: [text light="true"][css].class { example }[/css]June 27th, 20092009-06-27T09:49:21ZF jS, Y - 2:49 AM2009-06-27T09:49:21Zg:i A
hi … tried the snippet you posted above. but after saving the draft the only thing that was left, was the
” … strange !?
July 7th, 20092009-07-08T00:49:32ZF jS, Y - 5:49 PM2009-07-08T00:49:32Zg:i A
For some odd reason the plugin output is displaying HTML tags in the highlighted code block. For example:
public class SomeClass()BR
{BR…
It is doing this in most of my articles where it was working before without a glitch. I haven’t made any changes to the markup or anything. This just started happening for no apparent reason. For a sample of this behavior see:
http://www.pcsweblabs.com/index.php/2009/07/07/use-linq-to-query-asp-net-control-data/
The really weird thing is that my newest article is not showing this behavior. See:
http://www.pcsweblabs.com/index.php/2009/07/07/json-parameter-string-builder/
Any assistance on resolving this issue would be greatly appreciated.
Thanks!
July 8th, 20092009-07-08T09:14:38ZF jS, Y - 2:14 AM2009-07-08T09:14:38Zg:i A
Ramon Tristani on July 7th, 2009 at 5:49 PM2009-07-08T00:49:32ZF jS, Y \a\t g:i A wrote:
Both links look fine to me.
July 8th, 20092009-07-08T14:31:14ZF jS, Y - 7:31 AM2009-07-08T14:31:14Zg:i A
Hi. I’m from Russia and not speak English, so do not judge strictly for errors:). There is a next challenge, a WordPress 2.8 and your plugin. But for some reason did not work, then I have to put a code editor in tags , , , , but when viewing the article appears in the text tags . The picture is visible problem. http://www.lipetsk-online.com/error.jpg. Another source saw a page that does not connect files js, tried to change in the plugin, click on wp_register_script wp_enqueue_script, they began to load, but does not boot code from the function maybe_output_scripts. What could be wrong?
July 8th, 20092009-07-08T17:41:14ZF jS, Y - 10:41 AM2009-07-08T17:41:14Zg:i A
Viper007Bond on July 8th, 2009 at 2:14 AM2009-07-08T09:14:38ZF jS, Y \a\t g:i A wrote:
Both links look fine to me.[/quote]
Thank you for your reply. I figured out what was causing the problem and I have “fixed” it. The problem was that I added the “inline-js” plugin to my WordPress installation. For some odd reason the plugin interacted with the SyntaxHighlighter Evolved output when the “[inline][/inline]” tags were not included in the post. Since I needed to have some inline script for one of my articles, there was no way I could just remove this plug in. The fix was to include the “[inline][/inline]” tag set in every post where I have code and that made the issue go away. My guess is that either the inline-js or SyntaxHighlighter Evolved plugins might be leaving a tag open somewhere that adversely affects the displayed output on the post. The skinny is that if the inline-js plugin is activated in WordPress, then every post that uses SyntaxHighlighter Evolved should have the “[inline][/inline]” in the post somewhere (at the top or bottom) in order to prevent erroneous output.
Thanks and I hope this helps someone.
Ramon E. Tristani
July 8th, 20092009-07-08T18:39:35ZF jS, Y - 11:39 AM2009-07-08T18:39:35Zg:i A
Hi, first of all, thanks for a great update! I sincerely missed being able to set these options through the admin pages of wordpress and you just made my day putting them there.
I also have a small issue. The Copy To Clipboard flash works only after clicking twice on other browsers and doesn’t work at all on Firefox. I tried for a few hours to fix it (it worked on the previous 1.1.x version) but couldn’t track down the culprit. Noticing that it works well on your site makes me wonder where the problem lies and whether it’s unique to my situation. I can understand it if you’re too busy to be bothered, but if you or anybody else has some idea from the top of their head, I’d be very glad to know about it: http://www.undermyhat.org/blog/2009/07/sudden-empty-blank-page-for-large-posts-with-wordpress/
(ps: I tried z-index, different position styles etc).
(PPS: this ‘click to edit’ is marvelous, where do you have that from?)
July 8th, 20092009-07-09T03:32:47ZF jS, Y - 8:32 PM2009-07-09T03:32:47Zg:i A
C0vax on July 8th, 2009 at 7:31 AM2009-07-08T14:31:14ZF jS, Y \a\t g:i A wrote:
Your theme is probably missing the wp_footer() hook.
July 8th, 20092009-07-09T03:52:59ZF jS, Y - 8:52 PM2009-07-09T03:52:59Zg:i A
Abel Braaksma on July 8th, 2009 at 11:39 AM2009-07-08T18:39:35ZF jS, Y \a\t g:i A wrote:
It’s a twice click for me. Must be another plugin or your theme.
July 8th, 20092009-07-09T05:50:24ZF jS, Y - 10:50 PM2009-07-09T05:50:24Zg:i A
Thank you, you were right, it was not wp_footer ()
July 9th, 20092009-07-09T21:28:45ZF jS, Y - 2:28 PM2009-07-09T21:28:45Zg:i A
Thanks for the quick follow-up, Viper. Apparently the copy works for you (FF 3.5 vs 3.0?), let’s assume most users can use it then, even if I can’t. The plugin or theme are not the problem, I checked that.
You seemed to have a leading whitespace problem. I seem to have that solved. I published the source for download in a (rather extensive, sorry) blog about how I fixed this issue: fix for leading whitespace bug of SyntaxHighlighter Evolved. If you feel you should use this in a next update, feel free to do so. It has been tested in quite some environments, but not all (i.e. I tested most current browsers, but not older WP versions).
Let me know what you think of it!
July 11th, 20092009-07-11T22:07:35ZF jS, Y - 3:07 PM2009-07-11T22:07:35Zg:i A
Abel Braaksma on July 9th, 2009 at 2:28 PM2009-07-09T21:28:45ZF jS, Y \a\t g:i A wrote:
Included in v2.2.0, although I seem to still have issues with it, namely pasting into TinyMCE. Hmm.
July 12th, 20092009-07-12T17:05:45ZF jS, Y - 10:05 AM2009-07-12T17:05:45Zg:i A
Hi!
This looks promising, and it would be even more if it was PHP 4 compatible. (Yes, there are still websites out there that run on PHP 4.)
Do you plan to make it PHP 4 compatible?
July 12th, 20092009-07-13T02:40:41ZF jS, Y - 7:40 PM2009-07-13T02:40:41Zg:i A
Hackadelic on July 12th, 2009 at 10:05 AM2009-07-12T17:05:45ZF jS, Y \a\t g:i A wrote:
It is PHP4 compatible…
July 16th, 20092009-07-16T22:49:27ZF jS, Y - 3:49 PM2009-07-16T22:49:27Zg:i A
Yeah, I already noticed myself it was sth. else that didn’t work. Sorry for the confusion.
Good work, Viper.
July 17th, 20092009-07-17T20:19:11ZF jS, Y - 1:19 PM2009-07-17T20:19:11Zg:i A
How does one add your own stylesheet to the list of themes? Adding it to the /styles/ directory doesn’t seem to make it show up in the list of options.
July 18th, 20092009-07-18T23:02:15ZF jS, Y - 4:02 PM2009-07-18T23:02:15Zg:i A
Hey, I recently installed your plugin at my blog. I found that it wasn’t working. I figured out it was my theme. I’m not sure if this has been mentioned already. I was missing <?php wp_footer(); ?> in the footer so the code wasn’t been highlighted. I didn’t read all the comments, but I did read a few people had similar problems with the code not been highlighted. Maybe you should add this in your installation note
Great plugin btw, this is the best code highlighter I’ve found so far. I’ve been searching for a good one for ages.
July 18th, 20092009-07-19T01:41:48ZF jS, Y - 6:41 PM2009-07-19T01:41:48Zg:i A
Owen on July 17th, 2009 at 1:19 PM2009-07-17T20:19:11ZF jS, Y \a\t g:i A wrote:
I wrote up a guide for you:
http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
July 18th, 20092009-07-19T01:42:34ZF jS, Y - 6:42 PM2009-07-19T01:42:34Zg:i A
Krystal on July 18th, 2009 at 4:02 PM2009-07-18T23:02:15ZF jS, Y \a\t g:i A wrote:
http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
July 19th, 20092009-07-19T14:18:44ZF jS, Y - 7:18 AM2009-07-19T14:18:44Zg:i A
Viper007Bond on July 18th, 2009 at 6:42 PM2009-07-19T01:42:34ZF jS, Y \a\t g:i A wrote:
http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
[/quote]
Oh I didn’t see that FAQ
July 20th, 20092009-07-20T15:53:56ZF jS, Y - 8:53 AM2009-07-20T15:53:56Zg:i A
Viper007Bond on June 24th, 2009 at 5:30 PM2009-06-25T00:30:31ZF jS, Y \a\t g:i A wrote:
still having problems using your plugin with WP 2.7.1 on windows/firefox.
everytime i use the
.class { example }it gets replaced to [/css]?
anyone else having this problem …?
after deactivating the plugin, the content in-between the brackets is back to normal.
July 21st, 20092009-07-21T15:49:26ZF jS, Y - 8:49 AM2009-07-21T15:49:26Zg:i A
I am having problems with the Visual Editor, as soon as I have pasted my code in the HTML view, I switch back Visual and all the code is lost.
Any ideas?
July 24th, 20092009-07-24T07:59:10ZF jS, Y - 12:59 AM2009-07-24T07:59:10Zg:i A
Hai, I was just wondering if it is a known issue in 2.8.2 where code outputed seems to like to become html escaped? For an example, if I were to I type in
, it would turn into<?phpon the page when saved (but not previewed, interestingly). (I’m using HTML view for editing)To make things worse, once I go back to edit it, the edit box would then display
, which would turn into&lt;?phpwhen saved. Then that&turns into another&and so on.Just wanted to know if that’s happening because I did something weird myself (conflicting plugin, errors in my theme)… or if it was reproducible…
For now I’ve ‘fixed’ it by editing your plugin file to decode the specialchars a few times, then re-encode it… though it seems a bit unintuitive, and means I can’t update.
Please help? Oh, and by the way, your browser sniffer is off… I’m on Chrome on Vista…
eyra
July 24th, 20092009-07-24T09:58:58ZF jS, Y - 2:58 AM2009-07-24T09:58:58Zg:i A
Lady-Succubus on July 24th, 2009 at 12:59 AM2009-07-24T07:59:10ZF jS, Y \a\t g:i A wrote:
I’m not Viper, but I may be able to answer: . this plugin should be used without using <code>. Instead, you should use [ php ] (remove spaces). This works from both HTML view and from Design view.
When you mix HTML and code, you should turn html-script to on: [ php html-script=true] and you should not escape the entities in HTML or Design view. See here: http://alexgorbatchev.com/wiki/SyntaxHighlighter:Configuration. here’s a page where you can see that in action for html.
July 24th, 20092009-07-24T21:38:23ZF jS, Y - 2:38 PM2009-07-24T21:38:23Zg:i A
Abel Braaksma on July 24th, 2009 at 2:58 AM2009-07-24T09:58:58ZF jS, Y \a\t g:i A wrote:
I’m not Viper, but I may be able to answer: . this plugin should be used without using <code>. Instead, you should use [ php ] (remove spaces). This works from both HTML view and from Design view.
When you mix HTML and code, you should turn html-script to on: [ php html-script=true] and you should not escape the entities in HTML or Design view. See here: http://alexgorbatchev.com/wiki/SyntaxHighlighter:Configuration. here’s a page where you can see that in action for html.[/quote]
Apologies for the confusion, but I wrapped everything in <code> tags to differentiate code from the rest of the comment. (I use code tags as a “quote” for code which I believe is the proper usage?)
I never actually used code tags while using this plugin. Though, I do have to say, I used them elsewhere in the post for other, non syntax highlighter related reasons. Perhaps that could have had an effect?
Everything in the comment I typed above was made to look exactly as it should when looked at normally (not when looked at in the source), as I even edited it to escape the ampersands that needed to be escaped.
eyra
July 24th, 20092009-07-24T23:21:31ZF jS, Y - 4:21 PM2009-07-24T23:21:31Zg:i A
Apologies are all mine. I didn’t read well (post in my mail was different and I reacted to that I think). Tried both with [ php ] and [ html ] but can’t seem to get the same behavior, regardless “html-script” or “htmlscript” is on or not. I do have a slightly different version though. Maybe Viper has an idea?
July 25th, 20092009-07-25T07:54:35ZF jS, Y - 12:54 AM2009-07-25T07:54:35Zg:i A
I tried removing all other plugins and switching back to the default theme (let’s hope no one visited my blog during that time), to no avail. But now I have proof.
Oh and, Abel, what version of wordpress are you using? Maybe that’s why you can’t reproduce the error.
eyra
July 25th, 20092009-07-25T14:40:47ZF jS, Y - 7:40 AM2009-07-25T14:40:47Zg:i A
Great plugin! I love it and use it all the time. One request, though – add ColdFusion and MXML to list of built-in languages?
July 26th, 20092009-07-26T08:24:56ZF jS, Y - 1:24 AM2009-07-26T08:24:56Zg:i A
Hi, thanks for that really cool plugin.
I just encountered a “problem” when using the qTranslate plugin too.
On the tab of the main language all works fine, text inn the tags is transferred into monospace and special chars are not touched.
But on tab of other languages double quotes get converted to “& quote” (without space) after saving the article.
Is that a problem that the hacks for using the visual editor do not cover that additional tabs?
July 26th, 20092009-07-26T08:52:21ZF jS, Y - 1:52 AM2009-07-26T08:52:21Zg:i A
Bentrax on July 26th, 2009 at 1:24 AM2009-07-26T08:24:56ZF jS, Y \a\t g:i A wrote:
This is a syntax highlighter evolved post… perhaps you’re looking for the qTranslate website?
eyra
July 28th, 20092009-07-28T07:12:03ZF jS, Y - 12:12 AM2009-07-28T07:12:03Zg:i A
Well I know that this is “SyntaxHighlighter Evolved”…
But I thought that the hack that enables you to input code and keeps your input as it has to be with all quotes and stuff and transforms the code-sections to monospace is from here…
July 28th, 20092009-07-28T07:42:38ZF jS, Y - 12:42 AM2009-07-28T07:42:38Zg:i A
Hey,
I seem to have the same problem as Lady-Succubus but the tips Abel provided didn’t work for me.
This is what I entered:
[ php html-script="true" ]<a title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=&t=">
<img src="/images/social/facebook_share_icon.gif" alt="Share on Facebook" />
[ /php ]
And this is what is being displayed on the preview:
<a title="Share on Facebook" rel="nofollow" href="http://www.facebook.com/sharer.php?u=<php the_permalink(); ?>&t=< ?php echo urlencode(get_the_title($id)); ?>">
<img src="<php echo get_bloginfo(‘template_url’); ?/>/images/social/facebook_share_icon.gif" alt="Share on Facebook" />
</a>
How can I keep it from being escaped?
August 1st, 20092009-08-01T07:25:28ZF jS, Y - 12:25 AM2009-08-01T07:25:28Zg:i A
Konstantin on July 28th, 2009 at 12:42 AM2009-07-28T07:42:38ZF jS, Y \a\t g:i A wrote:
Try using the “HTML” tab. If that doesn’t work, then try disabling all other plugins.
August 1st, 20092009-08-01T07:31:50ZF jS, Y - 12:31 AM2009-08-01T07:31:50Zg:i A
Viper007Bond on August 1st, 2009 at 12:25 AM2009-08-01T07:25:28ZF jS, Y \a\t g:i A wrote:
Try using the “HTML” tab. If that doesn’t work, then try disabling all other plugins.[/quote]
I’m not sure about Konstantin, but I don’t even have the visual editor on, and as I said before I tried disabling all plugins and setting it to the default theme…
eyra
August 1st, 20092009-08-01T18:06:58ZF jS, Y - 11:06 AM2009-08-01T18:06:58Zg:i A
Thanks.
Plugin automatic add custom fields to cause ??????
Name: syntaxhighlighter_encoded Value: 1
August 2nd, 20092009-08-02T14:38:55ZF jS, Y - 7:38 AM2009-08-02T14:38:55Zg:i A
Lady-Succubus on August 1st, 2009 at 12:31 AM2009-08-01T07:31:50ZF jS, Y \a\t g:i A wrote:
I actually had a different highlighter plugin active which interfered. Thanks for the tip.
But now it won’t display the scrollbar. Even when I set the overflow-x to scroll or visible it won’t show. I checked my theme css, but as far as I can tell there’s nothing colliding there.
It does show the scrollbar right before the JS kicks in, though. Any Idea here?
August 2nd, 20092009-08-02T14:42:38ZF jS, Y - 7:42 AM2009-08-02T14:42:38Zg:i A
By the way, did Smashing Magazine alter your code? Or how did they manage to have the toolbar fix on top?
Maybe you wanna make this optional in a future release..
August 2nd, 20092009-08-02T17:15:22ZF jS, Y - 10:15 AM2009-08-02T17:15:22Zg:i A
Konstantin on August 2nd, 2009 at 7:38 AM2009-08-02T14:38:55ZF jS, Y \a\t g:i A wrote:
I actually had a different highlighter plugin active which interfered. Thanks for the tip.
But now it won’t display the scrollbar. Even when I set the overflow-x to scroll or visible it won’t show. I checked my theme css, but as far as I can tell there’s nothing colliding there.
It does show the scrollbar right before the JS kicks in, though. Any Idea here?[/quote]
Congrats on your now working highlighter. Did you try adding an
!importantto the end of the css rule?Hmm… I wonder whats causing my issue…
eyra
August 2nd, 20092009-08-02T19:20:06ZF jS, Y - 12:20 PM2009-08-02T19:20:06Zg:i A
I fiddled with my theme’s CSS today and came up with a way to show a plain text toolbar (minus the clipboard Flash gizmo, which I just hid entirely). I also wanted it to show at all times, not just on hover. I came up with this:
/* SyntaxHighlighter overrides */
div.main div.syntaxhighlighter div.toolbar { border-width: 0 0 1px 0 !important; position: relative !important; left: 0 !important; overflow: auto; font-size: .9em !important; padding: 2px !important; }
div.main div.syntaxhighlighter div.toolbar a.item, .syntaxhighlighter .toolbar .item { background-image: none !important; width: auto !important; height: 1.3em !important; text-indent: 0 !important; border-bottom: none; margin-right: 2px; }
div.main div.syntaxhighlighter div.toolbar div.item.copyToClipboard { display: none !important; }
div.main div.syntaxhighlighter div.bar { display: block !important; position: relative; overflow: auto; }
… where div.main is a container for the whole post. You can see the result on my old breadcrumb script post.
I also discovered that Textile 2 (unsurprisingly) doesn’t play nicely with the highlighter. To avoid having an HTML break tag at the end of every line of code, I had to mark up blocks with the notextile codes, like so:
== ... ==Viper, great plugin. Vastly better than what I was using before!
August 3rd, 20092009-08-03T14:58:09ZF jS, Y - 7:58 AM2009-08-03T14:58:09Zg:i A
Lady-Succubus on August 2nd, 2009 at 10:15 AM2009-08-02T17:15:22ZF jS, Y \a\t g:i A wrote:
Sure did.
Even when I change it to
overflow-x: scroll;
it just displays an inactive scrollbar.
August 4th, 20092009-08-04T10:51:22ZF jS, Y - 3:51 AM2009-08-04T10:51:22Zg:i A
Hi,
I use your plugin for highlight code in comments. This is requried small changes, see code of plugin: http://anton.shevchuk.name/wp-demo/syntaxhighlighter.php.txt
August 7th, 20092009-08-07T23:28:48ZF jS, Y - 4:28 PM2009-08-07T23:28:48Zg:i A
I just tried this today and it doesn’t work. I have already confirmed that wp_head and wp_footer are called correctly. There is no definition for pre in my theme’s stylesheet. I also tried all the combinations of tags available. I am using PHP5 and Wordpress 2.6.3
August 7th, 20092009-08-08T05:27:55ZF jS, Y - 10:27 PM2009-08-08T05:27:55Zg:i A
Chris on August 7th, 2009 at 4:28 PM2009-08-07T23:28:48ZF jS, Y \a\t g:i A wrote:
Try disabling all other plugins.
August 11th, 20092009-08-11T20:11:45ZF jS, Y - 1:11 PM2009-08-11T20:11:45Zg:i A
Maaaan!!! Your plugin is great!!! It didn’t work until I found that my theme was missing wp_footer() in the footer. Was about to delete the plugin but tried to read these comments and found solution! Thanks!!!
August 11th, 20092009-08-12T04:12:41ZF jS, Y - 9:12 PM2009-08-12T04:12:41Zg:i A
Raim on August 11th, 2009 at 1:11 PM2009-08-11T20:11:45ZF jS, Y \a\t g:i A wrote:
For future reference, always read a plugin’s FAQ.
http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
August 26th, 20092009-08-26T10:18:07ZF jS, Y - 3:18 AM2009-08-26T10:18:07Zg:i A
Hi,
first of all: Thanks for this plugin! I installed it on my WP but Syntaxhighlighter doesn’t run with the new get_header() and get_footer(). Afaik wp_head and wp_footer are now deprecated, right?
Will you update your plugin in the next time?
Cheers,
Kaan
August 26th, 20092009-08-27T01:07:03ZF jS, Y - 6:07 PM2009-08-27T01:07:03Zg:i A
kaan on August 26th, 2009 at 3:18 AM2009-08-26T10:18:07ZF jS, Y \a\t g:i A wrote:
get_header() and get_footer() load the header.php and footer.php files. wp_head and wp_footer are hooks. Completely different.
August 29th, 20092009-08-29T17:30:44ZF jS, Y - 10:30 AM2009-08-29T17:30:44Zg:i A
Since I upgraded my Wordpress to 2.8.4 and SyntaxHighlighter 2.0.320, my code highlighting is gone. Can you help to identify the problem? (http://erlangexamples.com)
It throws JavaScript error saying it can’t find the brush. But I saw the javascript lib from syntaxhighlighter and brush are loaded correctly
August 30th, 20092009-08-30T19:25:17ZF jS, Y - 12:25 PM2009-08-30T19:25:17Zg:i A
same problem, my thems uses get_header() and get_footer() and the plugin doesn’t work… will there come an update or is there any workaround? thanks in advance!
August 31st, 20092009-08-31T14:11:52ZF jS, Y - 7:11 AM2009-08-31T14:11:52Zg:i A
My theme does have wp_head and wp_footer, but still the code not getting displayed. No clue now!
But in SyntaxHighlighter setting page, codes are rendered correctly.
August 31st, 20092009-08-31T21:08:46ZF jS, Y - 2:08 PM2009-08-31T21:08:46Zg:i A
just fixed my theme, but the same problem here…
September 1st, 20092009-09-01T13:32:01ZF jS, Y - 6:32 AM2009-09-01T13:32:01Zg:i A
Found it. One of my brushes is not in correct syntax which cause everything fails. Fixed.
@nonious: can you give url? I can have a look if brushes are in correct format.
September 2nd, 20092009-09-03T05:24:47ZF jS, Y - 10:24 PM2009-09-03T05:24:47Zg:i A
Hi, I like your plugin very much and hope you can add some additional translations in it. I’m from China so I build Simplified Chinese and Traditional Chinese language pack for SyntaxHighlighter Evolved. Simplified Chinese is used in Chinese mainland while the other is used in Taiwan and HongKong.
The related post in my blog: http://dayanjia.com/2009/09/wordpress-plugin-syntaxhighlighter-evolved-chinese-language-pack.html
You can download the zip from: http://dayanjia.com/wp-content/uploads/2009/09/localization.zip
Thank you. I think your SyntaxHighlighter Evolved will be more popular all of the world
September 3rd, 20092009-09-03T10:48:58ZF jS, Y - 3:48 AM2009-09-03T10:48:58Zg:i A
hi trung, my current version runs local, sorry. but where did you find the brush that causes this problem?
September 3rd, 20092009-09-03T12:15:27ZF jS, Y - 5:15 AM2009-09-03T12:15:27Zg:i A
nonious on September 3rd, 2009 at 3:48 AM2009-09-03T10:48:58ZF jS, Y \a\t g:i A wrote:
Well, as I installed a new brush for Erlang syntax and I figured out that the javascript is not using the SyntaxHighlighter lib. If you install a new brush, have a look and make sure syntax is correct.
September 3rd, 20092009-09-03T13:04:16ZF jS, Y - 6:04 AM2009-09-03T13:04:16Zg:i A
wohooooooo! thanks a lot, same solution here.
nice! thanks a lot, it works now fine.
September 23rd, 20092009-09-23T15:29:14ZF jS, Y - 8:29 AM2009-09-23T15:29:14Zg:i A
Hi Andrew,
I found a bug on the plugin. Please visit this article which is on my site. On the first syntaxhighlighter, you will see the following code
Hi,
i have a problem updating the following images
into your form <a href="http://example.com/givecredit.php?give=clay&;credit=9999" rel="nofollow".....
However, if you clicked on to view it on plain text, you will see the following code.
Hi,
i have a problem updating the following images
into your form <a href="http://example.com/givecredit.php?give=clay&credit=9999" rel="nofollow".....
Take note that the differences between the two code was an additional ‘;’ symbol on
http://example.com/givecredit.php?give=clay&;credit=9999
I took a look at the code but couldn’t find any solution. The display between the original text and the syntaxhighlighter seems to differ. Hope it help
Clay
September 23rd, 20092009-09-23T16:27:45ZF jS, Y - 9:27 AM2009-09-23T16:27:45Zg:i A
I’ve compiled a little list of all SyntaxHighlighter custom brushes I could find on the internet. The list includes many more brushes than the ones that come in the distribution. Looking for a brush? Check it there first
If you know of a brush or have created a brush yourself that’s not on that list, I’d be happy to hear of it.
@Viper: if you like, you can link to the brushes overview from your plugin information or FAQ page.
September 25th, 20092009-09-26T06:16:47ZF jS, Y - 11:16 PM2009-09-26T06:16:47Zg:i A
@Clay: Switch to HTML view and double check your stuff. My plugin is outputting
&instead of&which is confusing the highlighter. I would assume you have a funny character in your source, but I’m not sure.@Abel: Sweet, thanks! I’ve been meaning to write up a guide on how to write a plugin to register a new brush with SyntaxHighlighter Evolved and I’ll make sure to include a link to that when I do.
September 29th, 20092009-09-29T23:15:48ZF jS, Y - 4:15 PM2009-09-29T23:15:48Zg:i A
I receive the “Warning: Unresponsive Script” message from the SyntaxHighlighter Evolved Version 2.2.1 plugin when editing a post (new or existing) in HTML mode with WordPress 2.8.4 for both FireFox 3.5.3 and IE 8.
“A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
Script: http://www.handymanhowto.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter_mce.js?ver=3241-1141-syntaxhighlighter2.2.1:73
Stop Script Continue”
SyntaxHighlighter works fine in the single post that uses it.
The unresponsive script error happens when I’m editing a generic post that *does not* use the SyntaxHighlighter features and attempt to toggle to HTML mode. The only way to avoid it is to disable the SyntaxHighlighter plugin, do my editing, save the post and re-enable the plugin. If I click “Stop Script” the error message will reappear while it times outs in an endless cycle of Warning dialogs.
I use BlueHost.com to host my blog. Is there a way to isolate the area of the script that is causing the problem?
Thanks
September 30th, 20092009-09-30T08:20:54ZF jS, Y - 1:20 AM2009-09-30T08:20:54Zg:i A
Yeah, I’m aware of that issue and have a fix ready to go (along with quite a bit of plugin updating), but the updates require WordPress 2.9 so I’ve been holding off.
I’ll go ahead and push out the updated TinyMCE plugin now though.
September 30th, 20092009-09-30T17:40:31ZF jS, Y - 10:40 AM2009-09-30T17:40:31Zg:i A
Thanks Viper i think i know where goes wrong
September 30th, 20092009-10-01T00:35:49ZF jS, Y - 5:35 PM2009-10-01T00:35:49Zg:i A
I installed the Version 2.2.2 plugin update and haven’t had anymore script errors. Thanks!
October 2nd, 20092009-10-02T19:50:42ZF jS, Y - 12:50 PM2009-10-02T19:50:42Zg:i A
Hi, I’m using this plugin, before this I’d tried several others, at last my search ended, now I don’t see any missing chars and wierd issues, thanks a ton. it works perfect. however I’ve issues with comments, lot of my users communicate through comments and illustrate with code in comments, is there any way to disaplay code in comments just like in post??
October 3rd, 20092009-10-03T22:37:51ZF jS, Y - 3:37 PM2009-10-03T22:37:51Zg:i A
Hello,
I found it will transpose “” to html special chars,
even if they are in sql tag.
October 3rd, 20092009-10-03T23:42:45ZF jS, Y - 4:42 PM2009-10-03T23:42:45Zg:i A
@Joe Horn: What I’ve noticed is that some less well behaving plugins can interfere. That happens is they also do something when a post is saved. On my blog, for instance, I use the Excerpt Editor. When I don’t have a manual excerpt, it creates one for me and it ruins the encoding of the code sections, turning ” into " and < into < etc.
To find this out for yourself, try disabling all plugins, test it, see if it works and if so, add them back one by one. Of course, I assume you have the latest version of this plugin (there were some encoding issues in the past with Viper's plugin).
October 3rd, 20092009-10-04T04:00:34ZF jS, Y - 9:00 PM2009-10-04T04:00:34Zg:i A
Cpp-Programming.net on October 2nd, 2009 at 12:50 PM2009-10-02T19:50:42ZF jS, Y \a\t g:i A wrote:
I have a newer version of this plugin sitting on my computer that does code in comments and the text widget (plus a bunch of other behind the scenes stuff). However it requires WordPress 2.9. I think I’ll backport everything that doesn’t require WordPress 2.9 though and release it now (I think only code in widgets actually requires 2.9 code changes).
Stay tuned.
October 3rd, 20092009-10-04T05:51:58ZF jS, Y - 10:51 PM2009-10-04T05:51:58Zg:i A
Hii, I am having trouble to display my java jsp based code. I have tried many tricks to display the following code, but failed. Any help or guidance in this will be much appreciated.
*.jsp
true
true
October 8th, 20092009-10-09T02:37:38ZF jS, Y - 7:37 PM2009-10-09T02:37:38Zg:i A
Hi Viper,
Thanks for the great plugin. Just wondering if the following two features are worth to include in the next update:
1. Include this erlang brush into the plugin (as everytime I update, WP delete my erlang brush)
2. Can a maximum line displayed be define in the setting? Say, I want to display only 30 lines, and scrollbar is available for code length > 30
Many thanks,
Trung
October 8th, 20092009-10-09T05:04:29ZF jS, Y - 10:04 PM2009-10-09T05:04:29Zg:i A
Trung on October 8th, 2009 at 7:37 PM2009-10-09T02:37:38ZF jS, Y \a\t g:i A wrote:
That is for the old version of the highligher. I’m surprised it even works.
Also you do not need to modify any part of my plugin or stick the brush in it’s folder. I provide hooks for adding your own languages and brushes to my plugin.
Trung on October 8th, 2009 at 7:37 PM2009-10-09T02:37:38ZF jS, Y \a\t g:i A wrote:
This is not a feature of the highlighter, therefore I didn’t add it. You could easily do so via
.syntaxhighlighter { max-height: 200px !important; }though.October 11th, 20092009-10-11T21:47:44ZF jS, Y - 2:47 PM2009-10-11T21:47:44Zg:i A
Hello,
first of all… Good job & many thanks!
I have also a problem with the “Copy to clipboard” SWF… Apparently, if it can help somebody, it works good if the wmode=”transparent” is turned off on Firefox.
Firefox is known to have problems with the transparent wmode, so a solution would be to create a non-transparent SWF, with the good background color.
October 11th, 20092009-10-12T01:23:02ZF jS, Y - 6:23 PM2009-10-12T01:23:02Zg:i A
Thanks for the advice, Viper.
October 11th, 20092009-10-12T02:43:58ZF jS, Y - 7:43 PM2009-10-12T02:43:58Zg:i A
cpayen on October 11th, 2009 at 2:47 PM2009-10-11T21:47:44ZF jS, Y \a\t g:i A wrote:
I am unable to reproduce in Firefox, and the transparent background is required due to the different (and custom) theme colors.
October 12th, 20092009-10-13T04:38:05ZF jS, Y - 9:38 PM2009-10-13T04:38:05Zg:i A
Hello there!
I was kind of curious as if you finally were able to back-port those changes you mentioned. I just can’t wait…!
Please, I don’t mean to make this like begging or something but… please, release it as soon as possible! :’(
October 13th, 20092009-10-13T22:16:55ZF jS, Y - 3:16 PM2009-10-13T22:16:55Zg:i A
Andrés Botero on October 12th, 2009 at 9:38 PM2009-10-13T04:38:05ZF jS, Y \a\t g:i A wrote:
I’m currently on a business trip. It’ll likely have to wait until next week before I have time.
October 25th, 20092009-10-25T23:55:19ZF jS, Y - 4:55 PM2009-10-25T23:55:19Zg:i A
I’m using FP 10 Debug in Chrome and I can’t seem to find out why I get this error when running my mouse over code which is displayed using this plugin.
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
Anyone have any idea how to resolve this?
October 25th, 20092009-10-26T01:55:10ZF jS, Y - 6:55 PM2009-10-26T01:55:10Zg:i A
Paul Gregoire on October 25th, 2009 at 4:55 PM2009-10-25T23:55:19ZF jS, Y \a\t g:i A wrote:
Never heard of such an error, although I didn’t write the Javascript this plugin uses.
Try contacting it’s author: http://alexgorbatchev.com/wiki/SyntaxHighlighter
November 2nd, 20092009-11-02T21:53:22ZF jS, Y - 1:53 PM2009-11-02T21:53:22Zg:i A
Hey man, thanks a TON for such an awesome plugin!
One quick question: When I’m using the WordPress function
the_excerpt()instead ofthe_content()on the main page (to automatically show the first 55 words of a post), is there any way to get the code in those first 55 words formatted by the SyntaxHighlighter Evolved plugin?November 2nd, 20092009-11-02T22:02:52ZF jS, Y - 2:02 PM2009-11-02T22:02:52Zg:i A
Raam Dev on November 2nd, 2009 at 1:53 PM2009-11-02T21:53:22ZF jS, Y \a\t g:i A wrote:
This may work (add to your theme’s
functions.phpfile):November 3rd, 20092009-11-03T22:58:46ZF jS, Y - 2:58 PM2009-11-03T22:58:46Zg:i A
Viper007Bond on November 2nd, 2009 at 2:02 PM2009-11-02T22:02:52ZF jS, Y \a\t g:i A wrote:
This may work (add to your theme’s
functions.phpfile):[/quote]
Hmm, I had high hopes for your suggestion because I thought it would be something like that, but unfortunately that didn’t work. If you, or anyone else here, has any other suggestions, I’d really appreciate it. Thanks!
November 4th, 20092009-11-05T03:57:45ZF jS, Y - 7:57 PM2009-11-05T03:57:45Zg:i A
Hi,
Thanks for a great plugin. Any chance that it will be updated to Alex’s latest 2.1.364 version? It adds an updated Java brush (that is of interest to me), a new theme, removal of the ruler option and a bunch of bug fixes.
Thanks
November 4th, 20092009-11-05T04:00:46ZF jS, Y - 8:00 PM2009-11-05T04:00:46Zg:i A
I noticed that in preview mode on Wordpress quotes in code such as ” turn into " (not sure that this will get parsed properly) when viewed in preview mode in Wordpress.
November 4th, 20092009-11-05T04:01:11ZF jS, Y - 8:01 PM2009-11-05T04:01:11Zg:i A
Sam on November 4th, 2009 at 7:57 PM2009-11-05T03:57:45ZF jS, Y \a\t g:i A wrote:
I wasn’t aware there was a new version. I’ll update ASAP.
November 4th, 20092009-11-05T04:05:36ZF jS, Y - 8:05 PM2009-11-05T04:05:36Zg:i A
Sam on November 4th, 2009 at 8:00 PM2009-11-05T04:00:46ZF jS, Y \a\t g:i A wrote:
I’ll double check previews when I update my plugin for the new highlighter version.
November 4th, 20092009-11-05T04:28:25ZF jS, Y - 8:28 PM2009-11-05T04:28:25Zg:i A
Thanks for the quick response! I expected to see an answer in a day or 2, not a few minutes
November 5th, 20092009-11-05T13:44:21ZF jS, Y - 5:44 AM2009-11-05T13:44:21Zg:i A
I forgot the most important part of the update
Line wrapping now works and looks like in most text editors, no more image.
November 5th, 20092009-11-05T18:50:40ZF jS, Y - 10:50 AM2009-11-05T18:50:40Zg:i A
As part of the move to Alex’s updated SyntaxHighlighter 2.1, can the change in the generated page be made from <pre class=”brush: java”> to <script type=”syntaxhighlighter” class=”brush: java”> ? See Alex’s updated usage info for 2.1. This should certainly help with page validation.
In case that did not work (due to parsing), here is a second attempt.
Current 2.0:
Future 2.1:
Thanks
November 5th, 20092009-11-05T19:33:46ZF jS, Y - 11:33 AM2009-11-05T19:33:46Zg:i A
Sam on November 5th, 2009 at 10:50 AM2009-11-05T18:50:40ZF jS, Y \a\t g:i A wrote:
There’s no reason to do that. My plugin automatically escapes HTML characters and the HTML it produces is totally valid. The new feature is designed for people who manually post code into the site.
Plus it would make the code not show up for people without Javascript and it’d also stop it from showing up in feeds.
November 5th, 20092009-11-05T22:18:08ZF jS, Y - 2:18 PM2009-11-05T22:18:08Zg:i A
Thanks for the explanation. Any ETA on the new release?
Thanks
November 5th, 20092009-11-06T04:03:51ZF jS, Y - 8:03 PM2009-11-06T04:03:51Zg:i A
You use WPtouch for iPhone access. Note that the date for all comments on your site in WPtouch is the number of days since the UNIX Epoch. WPtouch seemed to have fixed this, but it does not seem to work on your blog. I wonder in the WP 2.9 release you are using is to blame, or something else. As far as WPTouch, the syntaxhighlighter code shows beautifully on the iPhone till you click on the code section, and at that point an ugly No Flash icon is displayed since the clipboard uses a flash component that is not supported by the iPhone.
November 6th, 20092009-11-06T12:16:13ZF jS, Y - 4:16 AM2009-11-06T12:16:13Zg:i A
Darren on July 21st, 2009 at 8:49 AM2009-07-21T15:49:26ZF jS, Y \a\t g:i A wrote:
Here is a patch : http://raw-blog.com/wordpress-syntaxhighlighter-corriger-les-entitees-html-46.html
November 6th, 20092009-11-07T07:17:49ZF jS, Y - 11:17 PM2009-11-07T07:17:49Zg:i A
Sam on November 5th, 2009 at 8:03 PM2009-11-06T04:03:51ZF jS, Y \a\t g:i A wrote:
Why are you asking me? I’m not the maintainer of that plugin.
Sam on November 5th, 2009 at 8:03 PM2009-11-06T04:03:51ZF jS, Y \a\t g:i A wrote:
There’s 4 buttons. The far left one opens the code in a new window, the second one uses Flash to copy the code to your clipboard. Click the first one.
November 6th, 20092009-11-07T07:19:37ZF jS, Y - 11:19 PM2009-11-07T07:19:37Zg:i A
jb on November 6th, 2009 at 4:16 AM2009-11-06T12:16:13ZF jS, Y \a\t g:i A wrote:
Here is a patch : http://raw-blog.com/wordpress-syntaxhighlighter-corriger-les-entitees-html-46.html/quote
The TinyMCE plugin has been rewritten for v2.3.0 of my plugin, so this issue is likely already resolved in a better fashion. (It’s live on WordPress.com right now with no reported issues.)
November 6th, 20092009-11-07T07:33:57ZF jS, Y - 11:33 PM2009-11-07T07:33:57Zg:i A
Sam on November 5th, 2009 at 8:03 PM2009-11-06T04:03:51ZF jS, Y \a\t g:i A wrote:
A new version very recently came out and I hadn’t upgraded. I’m running the latest version now.
November 7th, 20092009-11-08T00:53:16ZF jS, Y - 4:53 PM2009-11-08T00:53:16Zg:i A
ok, thanks for the news
November 9th, 20092009-11-09T08:50:01ZF jS, Y - 12:50 AM2009-11-09T08:50:01Zg:i A
Hi Viper,
thanks for the new Update but i’m having some problem. The code is not showing normaly to my website. It splits into rows in a strange way.
Just take a look at this thread:
http://www.romeolab.com/siguria-e-fjalekalimeve
For ex. in the first highlited text it should be show so and not as there:
$fjalekalimi = ‘web12345′;
$hash = md5($fjalekalimi);
echo $hash;
Any idea wheres the problem?
Thanks in advance
November 9th, 20092009-11-09T09:03:35ZF jS, Y - 1:03 AM2009-11-09T09:03:35Zg:i A
It’s your theme. Remove any CSS from your theme’s stylesheet that affects “pre” or “code”.
November 9th, 20092009-11-09T15:28:20ZF jS, Y - 7:28 AM2009-11-09T15:28:20Zg:i A
Yeah You were right
I just removed a Code attribut and everything works now.
It was strange for me coz the previous versions didnt show this problem.
Thanks a lot for the help
November 9th, 20092009-11-09T21:18:30ZF jS, Y - 1:18 PM2009-11-09T21:18:30Zg:i A
Thanks for the updated version. I too was caught off guard by the issue that Rome mentioned, but it was easily remedied by removing the “pre” and “code” from my CSS (under the hope that I managed to edit all posts that had these tags and change them). I assume that others will run into this issue as well. The settings page has the following option:
“Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)”. Since the icon is no longer shown with the latest SyntaxHighlighter version, you may want to reword this option.
November 10th, 20092009-11-10T16:58:51ZF jS, Y - 8:58 AM2009-11-10T16:58:51Zg:i A
What is the easiest way to add CSS properties to the CSS brush? For example, how would I modify SyntaxHighlighter so that it recognizes (and formats) the property
-webkit-border-radius?November 10th, 20092009-11-11T01:40:19ZF jS, Y - 5:40 PM2009-11-11T01:40:19Zg:i A
I use Windows Live Writer to write blog posts. If I post my code with pre tags it doesn’t work.
I really don’t understand whats wrong. I also have posted code with the following syntax
this one works .. but its really pain to post code with this syntax.
Also when I have page with combination of syntax (I used to use SyntaxHighlighter-Plus before), I get error “Cannot find burhs for csharp”
Can you help me fix this?
November 10th, 20092009-11-11T05:40:03ZF jS, Y - 9:40 PM2009-11-11T05:40:03Zg:i A
You’d have to modify shBrushCss.js and add it to the list of keywords.
November 10th, 20092009-11-11T05:47:18ZF jS, Y - 9:47 PM2009-11-11T05:47:18Zg:i A
Because your code won’t be automatically escaped, so HTML will render rather than showing up in code form.
Your code post appears to not have worked.
Just wrap your code in the shortcode that my plugin provides and it should work fine. csharp is one of the supported languages:
using System; using System.Text.RegularExpressions; namespace SharpVectors.Dom.Css { /// <summary> /// The CSSFontFaceRule interface represents a @font-face rule in a CSS style sheet. The @font-face rule is used to hold a set of font descriptions. /// </summary> /// <developer>niklas@protocol7.com</developer> /// <completed>80</completed> public class CssFontFaceRule : CssRule, ICssFontFaceRule { ...November 11th, 20092009-11-11T13:43:41ZF jS, Y - 5:43 AM2009-11-11T13:43:41Zg:i A
I just installed the new plugin and it horribly messes up the code and frankly I am now embarassed about what people may think when they visit my site.
Go here:
http://stansight.com/WordPress/2009/02/03/broken-image-icon-replacement/
The highlighted code expands to 100% of the page totally overlaying and obscuing the right hand menu bar
The code being highlighted has weird carriage return line feeds – HTML tags are being split to 3 or 4 lines – the code not looks HORRIBLE
How can I back it off or fix it ?
I’ll leave this up for a day so you can see what is happening – but after that I’m going to have to find the old code (which I have been using for years) or just yank the pluggin and re-edit all of my pages.
November 11th, 20092009-11-11T16:29:14ZF jS, Y - 8:29 AM2009-11-11T16:29:14Zg:i A
Read posts higher up. Uou have to remove any pre and code referencees in your CSS. Specifically you have:
pre, code { background: #fff url(images/preback.gif) repeat-y left top; border: 1px solid #dadada; color: #000; display: block; font: 9px 'Courier New' , Courier, Fixed, monospace; font-size: 100%; line-height: 15px; margin: 1em 0; overflow: auto; padding: 0 10px 0 55px; text-align: left; }in your stylesheet. Please comment it out, and all should look good.
November 11th, 20092009-11-11T22:54:33ZF jS, Y - 2:54 PM2009-11-11T22:54:33Zg:i A
First of all, thanks for this great plugin. Second, I’m having some problems after updating this plugin to the latest version. I’m currently using the LightWord theme by Andrei Luca and syntax highlighted code is displayed incorrectly as you can see in this post: http://privatevoid.org/2009/11/05/md5-in-java/
Any suggestions? This is probably the theme’s fault as it works fine with the default theme. I’m just trying to figure which style is causing it, so I can report it to the author.
November 11th, 20092009-11-12T04:17:39ZF jS, Y - 8:17 PM2009-11-12T04:17:39Zg:i A
I managed to fix this bug by commenting out the following from the first block in shCore.css:
font-size: 1em !important;
min-height: inherit !important;
November 11th, 20092009-11-12T05:43:06ZF jS, Y - 9:43 PM2009-11-12T05:43:06Zg:i A
No need to comment out font-size and the min-height is being pulled in from your theme. If you remove it from your theme, it won’t break SyntaxHighlighter.
November 14th, 20092009-11-15T01:31:53ZF jS, Y - 5:31 PM2009-11-15T01:31:53Zg:i A
So uh… How does it work?
I see Syntax Highlighting on the “SyntaxHighlighter Settings” page, but not anywhere else. What do I do to make it work?
November 14th, 20092009-11-15T01:42:43ZF jS, Y - 5:42 PM2009-11-15T01:42:43Zg:i A
It seems to work if I surround things with [/php] tags, but not . I get a pop-up alert:
SyntaxHighlighter
Can’t find brush for: php
November 14th, 20092009-11-15T03:07:06ZF jS, Y - 7:07 PM2009-11-15T03:07:06Zg:i A
Yes, the settings page contains examples and all of the available parameters.
As for your blog, are you using the shortcode, or are you manually typing in the pre tag or something?
I see in your footer that the Python script is being loaded, so the plugin is working, however it’s not detecting that you used the PHP tag and therefore need it’s Javascript file to be loaded.
Do it just like this:
November 14th, 20092009-11-15T03:19:56ZF jS, Y - 7:19 PM2009-11-15T03:19:56Zg:i A
I was entering the pre tag into the HTML editor. If I enter this it works though:
[python] def function(): pass [/python]November 14th, 20092009-11-15T03:59:39ZF jS, Y - 7:59 PM2009-11-15T03:59:39Zg:i A
Language files are loaded dynamically (they are only loaded if they’re needed). If you use the pre tag directly, then my plugin won’t know you need it and won’t load it.
You need to use the shortcode (as I said above).
November 14th, 20092009-11-15T04:07:22ZF jS, Y - 8:07 PM2009-11-15T04:07:22Zg:i A
Ohhh… that’s what you’re *supposed* to do? That’s what I was trying to figure out. Can you put brief instructions in the description?
November 15th, 20092009-11-15T10:16:17ZF jS, Y - 2:16 AM2009-11-15T10:16:17Zg:i A
Hi, nice theme. Can you tell me how to get rid of the default Twitter widget and/or replace it with my twitter account instead of the Wordpress twitter account. I’m using Wordpress 2.8.6. If I drag the Mystique Twitter widget to the default sidebar and set it up for my Twitter account, it works, but putting it there gets rid of the search and tool/tab widgets. So, I try putting it in the secondary sidebar, I still get the Wordpress twitter account. Also, if I add a Twitter widget to the footer and set it up for my Twitter account, I get both the Wordpress tweets AND my tweets. Note, I’ve also tried dragging to the Inactive Widgets area, but that does nothing to get rid of the Twitter widget; it still shows up with the Wordpress twitter account. I’m at a loss. Please help.
November 15th, 20092009-11-15T12:06:00ZF jS, Y - 4:06 AM2009-11-15T12:06:00Zg:i A
A) This has nothing to do with my plugin, so you’re on the wrong post.
B) If you add a widget to your sidebar, it gets rid of the default content. Just re-add the search and “Mystique | Sidebar tabs” widgets if you want them back. Simple.
November 15th, 20092009-11-15T19:46:40ZF jS, Y - 11:46 AM2009-11-15T19:46:40Zg:i A
Wow, you’re right. Wrong blog. It was late. Sorry about that, but thanks for replying and setting me straight.
November 15th, 20092009-11-16T05:34:28ZF jS, Y - 9:34 PM2009-11-16T05:34:28Zg:i A
Since updated to version 2.3.0, my codes start having wierd padding in each line and inserting new line every after a reserved keyword (e.g. `from`,`import`, `def` for python).
This incident is obviously seen in http://blog.yolcoyama.net/?p=80.
Any ideas?
November 15th, 20092009-11-16T06:41:29ZF jS, Y - 10:41 PM2009-11-16T06:41:29Zg:i A
Delete this block of code from your theme’s style.css:
.post_content code { display: block; margin: 10px; padding: 5px; clear: both; font-size: 12px; font-family: Geneva, Arial, Helvetica, sans-serif; border: 1px solid #eeeeee; background-color: #ffffff; font-style: italic; color: #606060; }v2.3.1 of my plugin should make that “display: block;” not totally break the code.
November 15th, 20092009-11-16T07:26:59ZF jS, Y - 11:26 PM2009-11-16T07:26:59Zg:i A
wow..
now they turned looking like what I expected when I commented it out.
thanks viper
November 16th, 20092009-11-16T20:52:51ZF jS, Y - 12:52 PM2009-11-16T20:52:51Zg:i A
I’m using SyntaxHighlighter Evolved 2.3.1, WordPress 2.8.6 and I’m still having problems with escaped HTML entities and other formatting problems with WordPress’ Visual Editor.
Even when I don’t use Visual editor, just use the HTML editor then save the post, it gets htmlentitified and SyntaxHighlighter Evolved displays the htmlescaped code
http://raw-blog.com/wordpress-syntaxhighlighter-corriger-les-entitees-html-46.html link is broken now
I hope there’s a solution. Thank you.
November 16th, 20092009-11-16T21:31:07ZF jS, Y - 1:31 PM2009-11-16T21:31:07Zg:i A
Hendy: Hmm, try disabling all other plugins. Perhaps another is interfering.
November 16th, 20092009-11-16T23:08:19ZF jS, Y - 3:08 PM2009-11-16T23:08:19Zg:i A
@Viper007Bond : Hey, you’re right! I disabled the Zemanta and my post is looking great now!
Zemanta is quite a nice plugin actually but I need SyntaxHighlighter Evolved more!
Thanks!
BTW, you should use Disqus for your comments.. At least for the threaded but also for other features.
November 16th, 20092009-11-17T01:03:48ZF jS, Y - 5:03 PM2009-11-17T01:03:48Zg:i A
My code below
<?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> <ol class="commentlist"> <?php wp_list_comments(); ?> </ol> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed. <?php endif; ?> <?php endif; ?>but when I preview it, i got:
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.
<?php endif; ?>
<?php endif; ?>
it converted to ASCII character.
What happened? I’m using only Preserve Code Formatting plugins
November 16th, 20092009-11-17T02:27:18ZF jS, Y - 6:27 PM2009-11-17T02:27:18Zg:i A
Thanks for the updated version. Version 2.3.1 allowed me to revert back the pre/code css to my theme. I am sure that this will cut down on the “tech support” postings.
November 16th, 20092009-11-17T04:43:18ZF jS, Y - 8:43 PM2009-11-17T04:43:18Zg:i A
Narga: try disabling other plugins to see if any of them are causing problems.
November 17th, 20092009-11-17T08:10:48ZF jS, Y - 12:10 AM2009-11-17T08:10:48Zg:i A
I’m deactive all plugins and only use askimet then it still happened!
November 17th, 20092009-11-17T09:11:19ZF jS, Y - 1:11 AM2009-11-17T09:11:19Zg:i A
“Preserve Code Formatting” will break my plugin. Disable that plugin, keep it disabled, and then copy/paste in your code again.
November 17th, 20092009-11-17T09:27:01ZF jS, Y - 1:27 AM2009-11-17T09:27:01Zg:i A
yes it works with shortcodes.. when I give shortcode the javascript containing the brush alias are inserted in the html..
But shortcode wont preserve my code formatting in LiveWriter .. it will be scrambled if I switch views .. only pre tag preserves the code formatting ..
is there anyway to use pre tags to post code instead of shotcodes?
November 17th, 20092009-11-17T20:01:49ZF jS, Y - 12:01 PM2009-11-17T20:01:49Zg:i A
If you aren’t going to use the shortcodes, then there’s no point in using my plugin. Just load the Javascript files into your theme and have them always be there. Or use a plugin that’ll help you do that: http://www.lastengine.com/syntax-highlighter-wordpress-plugin/
November 17th, 20092009-11-17T20:06:33ZF jS, Y - 12:06 PM2009-11-17T20:06:33Zg:i A
Hi Viper007Bond,
First of all, thanks for writing this cool plugin. Now let’s get to what is bugging me.
I can’t get Objective-C brush to work on version 2.3.1. With the previous version neither, but I pasted this brush http://alexgorbatchev.com/forums/comments.php?DiscussionID=27 on the shBrushObjC.js and it worked as expected. However the same workaround did not do the trick.
Could you take a look on what’s going on? Thanks in advance!
PS: Would you mind adding the alias cocoa to this brush? Just a small request for the lazy writers.
November 17th, 20092009-11-18T01:15:02ZF jS, Y - 5:15 PM2009-11-18T01:15:02Zg:i A
Aaahh, I don’t know about this bug but when I preview the published post then it converted to ASCII character, after I saved, it is work correct.
November 17th, 20092009-11-18T04:12:38ZF jS, Y - 8:12 PM2009-11-18T04:12:38Zg:i A
This was mentioned earlier.
November 18th, 20092009-11-18T10:18:07ZF jS, Y - 2:18 AM2009-11-18T10:18:07Zg:i A
Whoops, completely forgot.
November 18th, 20092009-11-18T10:21:04ZF jS, Y - 2:21 AM2009-11-18T10:21:04Zg:i A
I’m unable to reproduce any HTML entity issues. Preview mode works perfectly for me using WordPress 2.9 beta 1.
It’s likely another plugin causing problems or perhaps a fixed WordPress bug.
November 18th, 20092009-11-18T18:08:40ZF jS, Y - 10:08 AM2009-11-18T18:08:40Zg:i A
Can you try previewing a brand new post with no title? I am not sure if the title figures in or not, but that is one way to replicate.
November 18th, 20092009-11-18T22:10:17ZF jS, Y - 2:10 PM2009-11-18T22:10:17Zg:i A
Unfocusing the title field triggers an autosave, but so should pressing the preview button.
Still works fine for me, but as I said it could be a bug that was fixed.
November 20th, 20092009-11-21T06:20:55ZF jS, Y - 10:20 PM2009-11-21T06:20:55Zg:i A
Very tall rows? I removed the “” formatting in my CSS files but I can’t get my table to have shorter rows. Where else should I be looking?
November 20th, 20092009-11-21T06:36:20ZF jS, Y - 10:36 PM2009-11-21T06:36:20Zg:i A
Sorry, here is what I meant to write… I removed the “pre” and “code” formatting in my CSS files but I am still getting very tall rows. What do I need to get shorter rows. Where else should I be looking?
http://blog.omita.com/?p=267
November 20th, 20092009-11-21T07:10:02ZF jS, Y - 11:10 PM2009-11-21T07:10:02Zg:i A
So… the bug seems to be related to “min-height”. I can’t figure out force then .syntaxhighlighter to actually use the “min-height” I set…
November 20th, 20092009-11-21T07:17:15ZF jS, Y - 11:17 PM2009-11-21T07:17:15Zg:i A
all I need todo is get this one line in and all is well… how do I do this. I have tried putting this css code all over the place but it never seems to take.
.syntaxhighlighter table tbody { min-height: 1px; }
November 20th, 20092009-11-21T07:45:41ZF jS, Y - 11:45 PM2009-11-21T07:45:41Zg:i A
I found the min-height class that everything was inheriting from and fixed the issue… hopefully I didn’t make my Theme blow up for some other setting.
November 21st, 20092009-11-21T10:55:08ZF jS, Y - 2:55 AM2009-11-21T10:55:08Zg:i A
Not sure why min-height is there. I’ll be removing it from the next version.
As for why your CSS wouldn’t take, it’s because SyntaxHighlighter uses !important and hooks in at the very end of the head.
November 26th, 20092009-11-27T06:28:32ZF jS, Y - 10:28 PM2009-11-27T06:28:32Zg:i A
Currently, ‘print’ is not defined as a function in shBrushPhp.js in SyntaxHighlighter Evolved 2.3.2. While I realize that ‘print’ isn’t a function, and is rather a quite common language construct, so is ‘echo’ (which is classified as a function in 2.3.2).
November 26th, 20092009-11-27T06:47:15ZF jS, Y - 10:47 PM2009-11-27T06:47:15Zg:i A
In Reply To bundyxc:
Good catch. Fixed in v2.3.3 and I’ve submitted a bug report upstream to the author of the SyntaxHighlighter Javascript package.
November 28th, 20092009-11-28T15:16:29ZF jS, Y - 7:16 AM2009-11-28T15:16:29Zg:i A
Thanks, Viper… works like a charm as usual. Just ran into some odd behavior at http://sourcebench.com/languages/bash/download-mirror-an-entire-website-with-wget/
It seems that links are wrapped in <a href tags which are then also displayed as source. As I could not find any filter in my P2 theme that does it i was wondering if that might be something in your plugin?
November 28th, 20092009-11-29T00:47:53ZF jS, Y - 4:47 PM2009-11-29T00:47:53Zg:i A
After the ‘print’ thing, I decided to take a look at SyntaxHighlighter’s PHP Brush, and noticed that it could use some improving. I took a few hours out of my day to make it work how it should. Please feel free to include this in your next release of SyntaxHighlighter Evolved.
I submitted my file to Alex, and so I’m going to see if I can get this included in his next release of SyntaxHighlighter.
http://bundyxc.com/?p=33
November 28th, 20092009-11-29T01:30:33ZF jS, Y - 5:30 PM2009-11-29T01:30:33Zg:i A
In Reply To Thorsten Ott:
Yeah, don’t make URLs hyperlinks. It’ll display exactly the code it’s given (check HTML view). Or does P2 auto-hyperlink URLs? That may be a problem if it does.
December 3rd, 20092009-12-03T19:44:30ZF jS, Y - 11:44 AM2009-12-03T19:44:30Zg:i A
Hi,
Do you know why it doesn’t work there
http://msaccessvbatutorial.com/blog/test-syntax-highlighter/
?
Thanks.
December 3rd, 20092009-12-03T21:17:06ZF jS, Y - 1:17 PM2009-12-03T21:17:06Zg:i A
In Reply To It doesn't work:
You’re sure the plugin is activated?
December 4th, 20092009-12-04T20:39:12ZF jS, Y - 12:39 PM2009-12-04T20:39:12Zg:i A
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
December 4th, 20092009-12-04T22:58:32ZF jS, Y - 2:58 PM2009-12-04T22:58:32Zg:i A
In Reply To Liam McCabe:
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.
December 4th, 20092009-12-05T04:24:47ZF jS, Y - 8:24 PM2009-12-05T04:24:47Zg:i A
@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
December 4th, 20092009-12-05T04:29:05ZF jS, Y - 8:29 PM2009-12-05T04:29:05Zg:i A
In Reply To Mario Mariani:
Please see my comment below, on Dec 5th. Cheers!
December 5th, 20092009-12-05T09:50:08ZF jS, Y - 1:50 AM2009-12-05T09:50:08Zg:i A
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
December 5th, 20092009-12-05T12:46:28ZF jS, Y - 4:46 AM2009-12-05T12:46:28Zg:i A
In Reply To Liam McCabe:
On:
Off:
Source of this comment: http://viper007bond.pastebin.com/f7aee5b3d
December 6th, 20092009-12-06T11:47:30ZF jS, Y - 3:47 AM2009-12-06T11:47:30Zg:i A
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 blueDecember 6th, 20092009-12-06T11:49:05ZF jS, Y - 3:49 AM2009-12-06T11:49:05Zg:i A
Grr I mean both times it displays the entity names & lt ; etc
December 6th, 20092009-12-06T12:19:23ZF jS, Y - 4:19 AM2009-12-06T12:19:23Zg:i A
Disable all other plugins, switch to the default theme, don’t use a desktop editor, etc. Basically eliminate all variables.
December 6th, 20092009-12-06T21:21:13ZF jS, Y - 1:21 PM2009-12-06T21:21:13Zg:i A
hi, in safari (mac) the code areas are empty. i don’t have a clue why, in firefox the plugin works fine…
December 6th, 20092009-12-06T21:53:27ZF jS, Y - 1:53 PM2009-12-06T21:53:27Zg:i A
Emanuel on December 6th, 2009 at 1:21 PM2009-12-06T21:21:13ZF jS, Y \a\t g:i A wrote:
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
December 8th, 20092009-12-09T01:11:44ZF jS, Y - 5:11 PM2009-12-09T01:11:44Zg:i A
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”.
December 10th, 20092009-12-10T11:42:25ZF jS, Y - 3:42 AM2009-12-10T11:42:25Zg:i A
In Reply To Vlad Ghinea:
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).
December 10th, 20092009-12-10T20:49:23ZF jS, Y - 12:49 PM2009-12-10T20:49:23Zg:i A
Finally figured it out Viper
When this code was present in the post, html entities were displayed:
Strange, no? :S
December 10th, 20092009-12-11T02:03:32ZF jS, Y - 6:03 PM2009-12-11T02:03:32Zg:i A
Hi Viper,
Thanks for fixing the Objective-C brush!
Cheers
December 13th, 20092009-12-13T20:38:28ZF jS, Y - 12:38 PM2009-12-13T20:38:28Zg:i A
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
December 13th, 20092009-12-13T20:42:37ZF jS, Y - 12:42 PM2009-12-13T20:42:37Zg:i A
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.
December 13th, 20092009-12-14T00:29:46ZF jS, Y - 4:29 PM2009-12-14T00:29:46Zg:i A
In Reply To bundyxc:
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.
December 13th, 20092009-12-14T05:46:43ZF jS, Y - 9:46 PM2009-12-14T05:46:43Zg:i A
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
December 13th, 20092009-12-14T06:46:26ZF jS, Y - 10:46 PM2009-12-14T06:46:26Zg:i A
Azlan on December 13th, 2009 at 9:46 PM2009-12-14T05:46:43ZF jS, Y \a\t g:i A wrote:
Reupload the file. It likely uploaded badly.
December 16th, 20092009-12-16T11:41:59ZF jS, Y - 3:41 AM2009-12-16T11:41:59Zg:i A
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:
December 16th, 20092009-12-16T11:43:58ZF jS, Y - 3:43 AM2009-12-16T11:43:58Zg:i A
WOW, incredible! Here the code is functionally…
I have write the same code in my post, but it appears nothing..
[ bash ] code [ / bash ]
December 16th, 20092009-12-16T23:07:23ZF jS, Y - 3:07 PM2009-12-16T23:07:23Zg:i A
In Reply To simplemal:
Your theme is likely missing
from it’s footer.php file.
December 17th, 20092009-12-17T13:17:19ZF jS, Y - 5:17 AM2009-12-17T13:17:19Zg:i A
That’s incredible. I’ve forgot this in my template!
Thank you
December 22nd, 20092009-12-22T12:05:50ZF jS, Y - 4:05 AM2009-12-22T12:05:50Zg:i A
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/
December 22nd, 20092009-12-23T07:30:53ZF jS, Y - 11:30 PM2009-12-23T07:30:53Zg:i A
In Reply To Bahree:
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.
December 23rd, 20092009-12-23T12:56:28ZF jS, Y - 4:56 AM2009-12-23T12:56:28Zg:i A
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!
December 23rd, 20092009-12-23T13:37:41ZF jS, Y - 5:37 AM2009-12-23T13:37:41Zg:i A
I finished localization files in Traditional Chinese, how should I send them to you?
December 23rd, 20092009-12-23T23:18:14ZF jS, Y - 3:18 PM2009-12-23T23:18:14Zg:i A
In Reply To Mingao:
Send it to viper at this domain or use the contact form to send me an e-mail and I’ll reply.
December 25th, 20092009-12-25T21:44:27ZF jS, Y - 1:44 PM2009-12-25T21:44:27Zg:i A
hi,??
??????????????? ?????????????????????????????????????
??????????
thanks! very much.
December 28th, 20092009-12-28T17:30:03ZF jS, Y - 9:30 AM2009-12-28T17:30:03Zg:i A
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!
December 28th, 20092009-12-29T00:00:22ZF jS, Y - 4:00 PM2009-12-29T00:00:22Zg:i A
In Reply To Vladimir:
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?
December 29th, 20092009-12-29T17:18:36ZF jS, Y - 9:18 AM2009-12-29T17:18:36Zg:i A
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.
December 29th, 20092009-12-29T20:32:59ZF jS, Y - 12:32 PM2009-12-29T20:32:59Zg:i A
Great plugin
Thanks a lot
December 29th, 20092009-12-29T23:19:33ZF jS, Y - 3:19 PM2009-12-29T23:19:33Zg:i A
In Reply To Narada:
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).
January 2nd, 20102010-01-02T08:56:36ZF jS, Y - 12:56 AM2010-01-02T08:56:36Zg:i A
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.
January 3rd, 20102010-01-04T00:42:45ZF jS, Y - 4:42 PM2010-01-04T00:42:45Zg:i A
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?
January 3rd, 20102010-01-04T05:56:45ZF jS, Y - 9:56 PM2010-01-04T05:56:45Zg:i A
In Reply To Dennis Madsen:
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.January 4th, 20102010-01-04T14:41:40ZF jS, Y - 6:41 AM2010-01-04T14:41:40Zg:i A
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
January 4th, 20102010-01-04T15:13:00ZF jS, Y - 7:13 AM2010-01-04T15:13:00Zg:i A
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.
January 5th, 20102010-01-05T08:43:28ZF jS, Y - 12:43 AM2010-01-05T08:43:28Zg:i A
In Reply To Eonil:
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.
January 5th, 20102010-01-05T08:44:42ZF jS, Y - 12:44 AM2010-01-05T08:44:42Zg:i A
In Reply To Jesse:
Umm, it already does that. The Javascript and CSS files are only loaded if they are actually needed for that specific page.
January 5th, 20102010-01-05T14:01:46ZF jS, Y - 6:01 AM2010-01-05T14:01:46Zg:i A
In Reply To Viper007Bond:
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>January 5th, 20102010-01-05T14:06:40ZF jS, Y - 6:06 AM2010-01-05T14:06:40Zg:i A
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.
January 5th, 20102010-01-05T14:09:03ZF jS, Y - 6:09 AM2010-01-05T14:09:03Zg:i A
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.
January 6th, 20102010-01-06T09:40:43ZF jS, Y - 1:40 AM2010-01-06T09:40:43Zg:i A
In Reply To Jesse:
That’s because somewhere in your page you’re using the PHP and CSS brushes.
January 6th, 20102010-01-06T14:37:53ZF jS, Y - 6:37 AM2010-01-06T14:37:53Zg:i A
In Reply To Viper007Bond:
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?
January 6th, 20102010-01-06T15:13:59ZF jS, Y - 7:13 AM2010-01-06T15:13:59Zg:i A
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
January 6th, 20102010-01-07T00:49:25ZF jS, Y - 4:49 PM2010-01-07T00:49:25Zg:i A
In Reply To Jesse:
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(); }January 6th, 20102010-01-07T02:47:57ZF jS, Y - 6:47 PM2010-01-07T02:47:57Zg:i A
In Reply To Viper007Bond:
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.
January 7th, 20102010-01-07T23:21:18ZF jS, Y - 3:21 PM2010-01-07T23:21:18Zg:i A
In Reply To Jesse:
Then your browser is having issues. It should cache all Javascript files and not download them again on each page load.
January 7th, 20102010-01-08T00:09:20ZF jS, Y - 4:09 PM2010-01-08T00:09:20Zg:i A
In Reply To Viper007Bond:
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
January 7th, 20102010-01-08T02:23:48ZF jS, Y - 6:23 PM2010-01-08T02:23:48Zg:i A
In Reply To Jesse:
Which is why my plugin only loads them when they’re needed.
January 7th, 20102010-01-08T02:44:23ZF jS, Y - 6:44 PM2010-01-08T02:44:23Zg:i A
In Reply To Viper007Bond:
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
January 8th, 20102010-01-09T03:45:59ZF jS, Y - 7:45 PM2010-01-09T03:45:59Zg:i A
Tanks for relly nice plugin, i use it on machosted, a danish website for Mac nerds
tanks a lot.
January 10th, 20102010-01-10T11:59:35ZF jS, Y - 3:59 AM2010-01-10T11:59:35Zg:i A
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?
January 11th, 20102010-01-11T12:03:44ZF jS, Y - 4:03 AM2010-01-11T12:03:44Zg:i A
In Reply To jeferson dos Santos:
You should submit your request to the author of the highlighter: http://alexgorbatchev.com/wiki/SyntaxHighlighter
I just wrote all of the WordPress stuff.
January 13th, 20102010-01-13T14:06:46ZF jS, Y - 6:06 AM2010-01-13T14:06:46Zg:i A
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.
January 13th, 20102010-01-13T14:25:24ZF jS, Y - 6:25 AM2010-01-13T14:25:24Zg:i A
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()
January 13th, 20102010-01-13T15:24:11ZF jS, Y - 7:24 AM2010-01-13T15:24:11Zg:i A
Viper007Bond on October 25th, 2009 at 6:55 PM2009-10-26T01:55:10ZF jS, Y \a\t g:i A wrote:
Here is a fixed clipboard.swf until the final fix is included with SyntaxHighlighter. Apparenlty the code has already been fixed but not included yet.
- The fix
http://bitbucket.org/alexg/syntaxhighlighter/issue/107/unhandled-ioerrorevent-from-clipboardswf
- Updated swf
http://dl.dropbox.com/u/340823/clipboard.swf
Just copy this into the scripts folder of SyntaxHighlighter
January 13th, 20102010-01-13T23:58:44ZF jS, Y - 3:58 PM2010-01-13T23:58:44Zg:i A
In Reply To Gabriel Mariani:
Thanks, but since this code is so widely used, I’d prefer to use only code that has been validated/reviewed by Alex himself. I’ll wait until he okays it.
January 16th, 20102010-01-16T20:13:42ZF jS, Y - 12:13 PM2010-01-16T20:13:42Zg:i A
Viper, I’m curious, whenever I have PHP code and wrap it in the [/php] shortcode, the beginning “” are converted into HTML “<” and “>” in the code box. Any ideas?
January 17th, 20102010-01-17T23:11:18ZF jS, Y - 3:11 PM2010-01-17T23:11:18Zg:i A
Fantastic plugin.
January 21st, 20102010-01-21T08:40:02ZF jS, Y - 12:40 AM2010-01-21T08:40:02Zg:i A
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
January 21st, 20102010-01-21T10:47:14ZF jS, Y - 2:47 AM2010-01-21T10:47:14Zg:i A
In Reply To rsjs:
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/
January 22nd, 20102010-01-23T03:51:51ZF jS, Y - 7:51 PM2010-01-23T03:51:51Zg:i A
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
January 26th, 20102010-01-26T12:38:42ZF jS, Y - 4:38 AM2010-01-26T12:38:42Zg:i A
#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; }January 26th, 20102010-01-26T12:40:55ZF jS, Y - 4:40 AM2010-01-26T12:40:55Zg:i A
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..
January 26th, 20102010-01-26T13:16:44ZF jS, Y - 5:16 AM2010-01-26T13:16:44Zg:i A
In Reply To Kevin S:
See the second question: http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
January 26th, 20102010-01-26T17:22:19ZF jS, Y - 9:22 AM2010-01-26T17:22:19Zg:i A
In Reply To Viper007Bond:
Hi, thanks a lot.. was missing from footer..
January 26th, 20102010-01-26T22:24:06ZF jS, Y - 2:24 PM2010-01-26T22:24:06Zg:i A
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
January 26th, 20102010-01-26T23:58:51ZF jS, Y - 3:58 PM2010-01-26T23:58:51Zg:i A
In Reply To Jimmy Burnett:
Your theme is likely missing the required footer hook: http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
January 26th, 20102010-01-27T00:13:21ZF jS, Y - 4:13 PM2010-01-27T00:13:21Zg:i A
Thanks that worked!!
January 26th, 20102010-01-27T06:38:58ZF jS, Y - 10:38 PM2010-01-27T06:38:58Zg:i A
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!
January 27th, 20102010-01-27T13:17:27ZF jS, Y - 5:17 AM2010-01-27T13:17:27Zg:i A
Jean-Pierre de la Croix,
I see an option to disable the line numbers. You should have the same options under your dashboard.
January 27th, 20102010-01-27T14:54:19ZF jS, Y - 6:54 AM2010-01-27T14:54:19Zg:i A
In Reply To Jimmy Burnett:
Yes, but unfortunately that takes away a lot of the readability.of code that is multiple lines long.
January 27th, 20102010-01-27T15:05:09ZF jS, Y - 7:05 AM2010-01-27T15:05:09Zg:i A
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.
January 27th, 20102010-01-27T15:20:10ZF jS, Y - 7:20 AM2010-01-27T15:20:10Zg:i A
Time to pull the code down from BitBucket and take a look at it
January 27th, 20102010-01-27T16:38:47ZF jS, Y - 8:38 AM2010-01-27T16:38:47Zg:i A
Great plugin, I am using it on my own blog.
January 27th, 20102010-01-28T03:28:37ZF jS, Y - 7:28 PM2010-01-28T03:28:37Zg:i A
Jean-Pierre de la Croix on January 26th, 2010 at 10:38 PM2010-01-27T06:38:58ZF jS, Y \a\t g:i A wrote:
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.
January 28th, 20102010-01-28T14:02:07ZF jS, Y - 6:02 AM2010-01-28T14:02:07Zg:i A
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.
January 29th, 20102010-01-29T12:20:43ZF jS, Y - 4:20 AM2010-01-29T12:20:43Zg:i A
In Reply To TokkonoPaPa:
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.
January 29th, 20102010-01-29T13:03:12ZF jS, Y - 5:03 AM2010-01-29T13:03:12Zg:i A
In Reply To Viper007Bond:
Thank you for your reply.
I modified
syntaxhighlighter.phpas follows to fix my problem with plugin version 2.3.8.before modification:
after modification:
And also line 846 and 848.
I apologizes if I have a misunderstanding.
January 31st, 20102010-01-31T11:29:20ZF jS, Y - 3:29 AM2010-01-31T11:29:20Zg:i A
In Reply To TokkonoPaPa:
Ah, I was unaware that it would work without semi-colons. Thanks.
January 31st, 20102010-01-31T16:24:13ZF jS, Y - 8:24 AM2010-01-31T16:24:13Zg:i A
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.
January 31st, 20102010-02-01T04:14:48ZF jS, Y - 8:14 PM2010-02-01T04:14:48Zg:i A
In Reply To Reuben:
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.txtFebruary 1st, 20102010-02-01T15:44:42ZF jS, Y - 7:44 AM2010-02-01T15:44:42Zg:i A
In Reply To Viper007Bond:
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.
February 1st, 20102010-02-01T16:37:08ZF jS, Y - 8:37 AM2010-02-01T16:37:08Zg:i A
In Reply To Reuben:
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.
February 1st, 20102010-02-01T23:14:26ZF jS, Y - 3:14 PM2010-02-01T23:14:26Zg:i A
This plugin don’t work in my blog. Nothing change. I’m using code
In Settings works…
=(
February 2nd, 20102010-02-02T13:33:36ZF jS, Y - 5:33 AM2010-02-02T13:33:36Zg:i A
In Reply To Reuben:
Interesting. I’ll see if I can reproduce/debug/fix.
February 3rd, 20102010-02-03T08:47:33ZF jS, Y - 12:47 AM2010-02-03T08:47:33Zg:i A
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
February 3rd, 20102010-02-03T10:02:50ZF jS, Y - 2:02 AM2010-02-03T10:02:50Zg:i A
In Reply To Fernando:
Visit the settings page. You can control the clickable URLs option there.
February 3rd, 20102010-02-03T10:09:05ZF jS, Y - 2:09 AM2010-02-03T10:09:05Zg:i A
Good point on that, but I already have clickable URLs disabled, so it shows them as
Wordpress
Any other ideas?
February 3rd, 20102010-02-03T11:01:22ZF jS, Y - 3:01 AM2010-02-03T11:01:22Zg:i A
In Reply To Fernando:
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.February 3rd, 20102010-02-03T11:07:09ZF jS, Y - 3:07 AM2010-02-03T11:07:09Zg:i A
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.
February 3rd, 20102010-02-03T22:05:56ZF jS, Y - 2:05 PM2010-02-03T22:05:56Zg:i A
In Reply To Fernando:
Exactly. This “SEO smart links” plugin is at fault.
February 4th, 20102010-02-04T08:13:42ZF jS, Y - 12:13 AM2010-02-04T08:13:42Zg:i A
And any clues about how to fix it?
February 4th, 20102010-02-04T08:33:32ZF jS, Y - 12:33 AM2010-02-04T08:33:32Zg:i A
Fernando on February 4th, 2010 at 12:13 AM2010-02-04T08:13:42ZF jS, Y \a\t g:i A wrote:
That is something you’d need to take up with the plugin’s author (tell them not to touch anything inside of pre tags).
February 4th, 20102010-02-04T09:38:56ZF jS, Y - 1:38 AM2010-02-04T09:38:56Zg:i A
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?
February 4th, 20102010-02-04T09:58:35ZF jS, Y - 1:58 AM2010-02-04T09:58:35Zg:i A
In Reply To Fernando:
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.
February 6th, 20102010-02-06T11:44:46ZF jS, Y - 3:44 AM2010-02-06T11:44:46Zg:i A
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
February 6th, 20102010-02-06T12:21:19ZF jS, Y - 4:21 AM2010-02-06T12:21:19Zg:i A
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.
February 6th, 20102010-02-06T12:24:23ZF jS, Y - 4:24 AM2010-02-06T12:24:23Zg:i A
Is there anything I have to add anywhere? – it’s a costum template. I’m running WP 2.9.1
February 6th, 20102010-02-06T12:29:57ZF jS, Y - 4:29 AM2010-02-06T12:29:57Zg:i A
In Reply To Kristoffer:
http://wordpress.org/extend/plugins/syntaxhighlighter/faq/
February 6th, 20102010-02-06T13:31:38ZF jS, Y - 5:31 AM2010-02-06T13:31:38Zg:i A
Many thank you for the quick answer. I added the code, and it works now…