Seeing me freak out at solving maths equations, my mom used to say that solving maths problems is fun once you get the hang of it. I thought that she’s just telling me that to finish up my homework, but I now understand because its not that solving maths has become fun for me but I’ve found coding & solving problems in there to be fun, which apparently some people don’t. So logically speaking, when you get going in something, it starts looking fun to you, whatever it maybe, be it solving maths problems or logical equations while coding or cooking!!
But then since I’m into coding & this blog is about that, so lets stick to that, and while we are at it, I would like to announce the v3.5 of iG:Syntax Hiliter. This version is an update to the v3.1.1 and has bugfixes and new features and the new GeSHi engine(v1.0.7.6) and two new languages, Ruby and MySQL. While the Ruby language file was created by me, I’ve included the MySQL language file from the GeSHi package to allow for hiliting of MySQL specific SQL. But then, as you should know, since v3.0 you are no longer bound to the language files included with the plugin, you can use any language file supported by the GeSHi version bundled with the plugin. So what’s new in this release, some of you might ask & here’s what I’ve to say:
- Tested for compatability with both WP1.5.2 and WP2.0.1
- You can use any other BB tag based plugin with iG:Syntax Hiliter now. A check is done for the existence of the language file in the appropriate directory and if the language file is not present there, the code is returned as it is with the tags, no parsing done on it.
- Code posted in the comments can be hilited using the appropriate code tags. However this feature can be enabled/disabled from the admin interface of iG:Syntax Hiliter.
- A colour picker is now available for you to pick colours of the line numbers displayed with your code.
- A new type of “Plain Text” view of code is available that gives you the plain text code within the code box itself.
That’s apparently not all. There was a bug reported where the “C” language’s code was not being hilited & its been squashed. For full details, please refer to the Manual, its not very much but it has some details. 😉
So without any further ado, download iG:Syntax Hiliter v3.5. Any bugs etc. that you may find or have anything to say about the plugin, please leave a comment here or on the official thread at the WordPress support forums at http://wordpress.org/support/topic/10533.
Colourful Coding to you all!! 😉
UPDATE:- The new “Plain Text” view of displaying plain text code in the codebox itself is kinda experimental. It has one known problem of the codebox getting resized to a small height making it impossible to view the code if it contains 1-2 lines of code. This is being looked into, so if you have a problem with this, please don’t report it as a bug. Patience is a virtue. You can report anything else that’s not already reported!! 🙂
UPDATE:- The thread at WordPress forums seems to have been closed by the moderators there!! I don’t know why since I’m quite infrequent at the forums there now, so all questions etc. regarding the plugin go here. 🙂
I tried it with WordPress 2.1.3 and it make wordpress shut down (white screen only).
I have used your plugin heavily on my website and now can not upgrade.
When can one expect a compatible version of your plugin? Or do I have to check some error I could have done?
Matthias
Matthias, I haven’t had time so far to even try the plugin & see if it works with new WP or not. I’ll soon do so, but in the meanwhile please do look on your side that you’ve not made a mistake somewhere since mistakes can happen. 🙂
I love this plugin, but the “Show Plain Text Code Option” infrequently resetting itself to “YES” kind of drives me nuts 🙂
(WP 2.1.3, latest plugin download)
Umm yeah, have had that complaint for sometime now & am umm, sorry to admit that I really haven’t had time to even look into the plugin yet, been busy with personal & professional life. But an update will be out soon, I promise. 🙂
Great to see you’ll be updating the plugin some day, Amit 🙂 One feature request then : disable the stuff that parses code to put a link on every function found (ie “echo” replaced by the link to function echo on php.net)
Hmm yeah, I think I’ll put it as an option in the plugin configuration! 😉
Hi!
At first, thanks for a good work. We are using this plugin in our blog to get the code highlighted. So far, so good 🙂
Today I ran into problems and found some very nasty bugs. XML highlight doesn’t ork as expected. If I use namespace prefixes then instead of prf:Title I get prf :Title. Also I found no way how to make ASP.NET tags to work without problems. XML tags with prefixes are working normally in Geshi – I tried out on their online syntax highlighter.
May be you can add those fixes in next release?
Ain’t any bug in the plugin, highlighting problems should be directed to GeSHi website & Nigel(its developer).
It doesn’t support ASP.NET(the current plugin release & the GeSHi bundled with it). It has support for VB.NET & C# though. Besides, if you see the date of this post(just about the date when this plugin was released), it should tell you that its of Feb. last year & GeSHi has had some releases after that, so the plugin hasn’t been updated really! I’ll release an update soon, but really can’t say when. 🙂
I’m having problems where are being changed to & lt ; and & gt ; (without the spaces of course) when I view my posts, but they look fine in the editor My guess is it has something to do with being wrapped in the [php] tags. Any suggestions?
Hello,
Love your Plugin! One question: how can I get it to display the Plain Text first (or only the Plain Text)?
Thanks,
Cornelis
Ryan, have you tried to see your post without using the tags? See how your code is displayed, if its converted to html entities or not.
Cornelis, there’s no such option to display plain text by default or only plain text, since that is rendered by Javascript.
Plugin could not be activated because it triggered a fatal error.
🙁
what can I do ?
please state the version of WordPress you are using.
I use WordPress 2.2
strange, but… now it worked 😐
Yes, it shows up as the HTML entities in the source code. And I assume that’s the correct thing for it to be doing since I need to be able to enter HTML tags without them acting as HTML tags. But they’re HTML entities in both the Geshi and plain text views and in plain text they show correctly, but the entity code is displayed in the highlighted version.
Here’s an example page. Line three has a couple of in it that display as entities in the highlighted view but display as the correct character on the plain text view.
A little more information. I’m using version 3.5 of your great plugin. The blog that’s having issues is WordPress 2.2. I have the same plugin, same version, installed on a WordPress blog version 2.0.3 and it works fine.
Ok, I’m answering my own questions 🙂 It has something to do with the HTML editor. If I type the code in the Code tab it works, if I type it in the Visual tab it gets messed up. My guess is that the HTML editor is converting to entities and maybe Geshi is too so they’re confusing each other. Either way it’s sort of working.
Ryan, it seems to be alright to me.
Did you read the plugin manual? If you did then you wouldn’t have posted for help here, because in the manual its very prominently written that your code won’t mix well with the WYSIWYG editor & hence might not get displayed correctly, in which case there’s nothing that I can do, so its hardly good to post here that it ain’t working!! 🙂
Crap. If it was that much of an inconvenience delete my messages. Sorry to have been a burden. Most software authors I’ve come across are more than willing to help. Guess that’s not true for everyone.
Dude, you took it in the wrong sense. what actually I meant was that the manual provided in the package is there for a reason. had you read it, you would’ve saved yours & my time. But by your snobbish attitude, I can only imagine that you take it as if I or other people have any obligation towards you by which you should be provided support! For your type I simply have to say that since you didn’t pay for this software or support, it would be better if you be polite & understanding. I didn’t refuse to help you out, nor am I doing it now, but if the manual/help/instructions are provided in a package, you should read them.
Its not expected from non-techie users, but since you are using my plugin, I assume you are a techie & atleast a techie can bother to read instructions before banging on the developer’s door telling him something’s not working!
Rest is up to you, be snobbish or polite, hardly matters to me! 🙂
My apologies, tone doesn’t come across very well typed out. I do appreciate the plugin, and I really have read the manual twice, once each time I’ve installed it on a blog. Maybe the warning about WYSIWYG could be up in the installation section rather than at the very end.
Yeah well, thats why I used a smiley. Anyways, apology accepted! 😉
Its mentioned under the Important section, for the obvious reasons! 😉
I have thi problem with vb and vb.net
[vb]
msgbox “data”&”Data2”
[/vb]
appers “&” in “&” place
please if you have any answer to this problem please tellme
Thank’s
You need to tell which version of WordPress you are using, because here in my install, using a “&” works as it is!