So after fretting for long & causing much delay, finally I couldn’t keep it any longer. Presenting the Preview of iG:Syntax Hiliter v2.0, the only syntax hiliter plugin for WordPress 1.2 thats multilingual. π
Don’t look suspiciously at me, the Preview is just a figure of speech, to emphasise the fact that it still is lacking some features that I wanted in v2.0 which I’ll sort out shortly. Also, the new version of GeSHi is around the corner, so it’ll be there in the final release of iG:Syntax Hiliter v2.0.
Ok, that’s the explanation of naming it the v2.0 Preview, but what about the changes & new stuff in it? π
Well, as I already mentioned a month ago, I’d created a language file for ASP, so this release is ASP enabled. Auto formatting is disabled for posts that contain the iG:Syntax Hiliter tags, so your code is ready for copy-paste operations & this release also has GeSHi 1.0.1 core behind it which has some bug fixes & new methods. π
Another feature that is being introduced is the line numbering by using Ordered Lists(<OL>) making the code easy to copy-paste(thanks Rich for the suggestion). π I’ve had to hack the GeSHi core file quite a bit to get this feature going but the new version of GeSHi will have this feature built in(finally Oracle, the GeSHi developer, agreed with me on this, no need to apologise Oracle). π
IMPORTANT:-
There’s a known issue where multiline comments in CSS, PHP & JAVA are not highlighted correctly. This will be fixed in the final version.
Enough of my blabbing. You can download the iG:Syntax Hiliter v2.0 Preview immediately. π
Happy Coding!! π
Sorry!!!!!
π
For what? π
Thanks! I still had to edit it a bit to get it to validate properly, but at least it does now. π What happened to the line number colors? I liked them.
btw: the function I had to edit was changing the br br to a properly noted xhtml transitional single br tag after this comment:
function for prepending the div tag for that nice outline
What’s important is it now works. π Thanks again.
Ok, so you edited the pFix() function, did you? The changes will be there in the final release of v2.0 π
As for colours in Line Numbers, well, since I hacked up GeSHi to use OL instead of plain line numbering, colouring them made the code of that colour too. To fix it would have meant even more hacking of GeSHi. So I did the best thing, I pointed it out to the GeSHi developer & he has done away with traditional numbering & has adopted OL for line numbering of code. So it’ll be there by default in the final release of iG:Syntax Hiliter which will feature the all new GeSHi which is yet to be released. π Brad, the GeSHi developer also fixed the colouring problem of line numbers. But the background colours of line numbers won’t be there as OL doesn’t support colouring the list item numbers.
Still, I’ll try & find out a way to do that too, just need a bit of free time. π
Don’t forget, this is just a preview release, it just shows what you can expect in the final release. π
So, look forward to the final release. π
This is FABULOUS! Thank you for all your hard work on this plugin. I had just stumbled across GeSHi tonight and was thinking it would be perfect for WP… and then found iG:Syntax Hiliter!
I have one question re the Code highlighting function: I could not get it to work properly, it seems to crash into the code tag already a part of quicktags. Or it could be user error – grin. Can you advise me?
Thanks again!
What problems are you facing with the CODE tag? To remind you, it doesn’t hilite any code nor does it provide any line numbers. Its just there to encase all other code, which is not supported by the plugin, in a box similar to the one provided to other code.
If your problem is other than hiliting code in the CODE tags, then I’d like to know about them so that it can be fixed before the final release of v2.0
You can post your detailed problem at the WP support thread for this plugin which is available at http://wordpress.org/support/10/10533/. I’ll try to sort that out quickly!! π
Looks like good news:
“27/10/2004
GeSHi version 1.0.2 has been released. The new release incorporates all of the changes that were available in the BETA version, and complete documentation, as well as numerous bug fixes.”
I can’t wait to see the 2.0 stable release!
Thanks Wassim, but I already know that v1.0.2 of GeSHi is out, thanks to Brad, the developer of GeSHi. He & I have been communicating through eMail for the past month & I’m glad that he has implemented the OL for line numbering of code which I introduced in the current version of iG:Syntax Hiliter & he’s also implemented another great feature which will be fully exploited in the v2.0 Final of iG:Syntax Hiliter. π
Also, the current release is the stable release. Its not a BETA, its a PREVIEW of what will be coming in v2.0 Final. So you can use it without any fear of it crashing your WordPress. π
I had the BETA version sent to me by Brad & I already have the v1.0.2 of GeSHi & I’m working on it & all I can say at the moment is that the v2.0 Final will indeed be a treat. π π
I have the preview install now and I’m loving! I can’t imagine what you’d add to make it any better. π Thanks for this GREAT plugin.
I canΓ’β¬β’t imagine what youΓ’β¬β’d add to make it any better
Just wait & watch, that’s the mantra!! π
I’ve tried to set it up on my site and seems definately not working with latest Geshi sources (downloaded from their site).
I’ve a modified version to support C code (would you add this feature to it? :D).
Thanks in advance, let me know if you want my hacks.
Well, the latest GeSHi certainly won’t work with any of the current releases as GeSHi has new function calls & has deprecated some old functions & the language files have a new architecture as well. π
C is now officially supported by GeSHi but it won’t be supported by the iG:Syntax Hiliter v2.0 final. But I’ll release the code required for C support, additionally. You can plug it in & have it working. π The main focus of iG:Syntax Hiliter is to focus on popular web-based languages. π
Ok, thanks.
I will try to replace the updated Geshi with yours.
I will happy getting the v2.0 final π
I will try to replace the updated Geshi with yours
You’ll have to edit the plugin code & almost rewrite half of the GeSHi calls. π
Goodluck. π