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. 🙂
Hi.
I have installed WordPress MU and your plugin on it.
It work fine, but this:
[php]
$this->userFunc();
[/php]
was converted to
[php]
$this->userFunc();
[/php]
I can’t understand – it is plugin problem or WPMU itself?
Is anyone had such problem?
For the previous comment:
….
It work fine, but this:
[php]
$this->userFunc();
[/php]
was converted to
[php]
$this- & gt;userFunc();
[/php]
without spaces beetween “-” and “&” and “gt;”
I get what you mean alexis, no need to post again!! & as for your problem, well, that certainly is WPMU doing it since the plugin works just fine in WordPress. 🙂
(I posted this on the wordpress blog but I think this one is probably the right place so I’m posting here. true? let me know the right one and I’ll just post once from now on. I like this one because I can subscribe to the post)
It’s me Back again. Everything worked great in my test system because I have both my wordpress files and URL one level from the main. That is: http://test.peterkellner.net/wp for the wp files and http://test.peterkellner.net/wp for the URL of the blog.
In my production, I have wp files at http://peterkellner.net/wp and I have the reference URL for the blog set to http://peterkellner.net
This causes the highlighter plugin to fail. I get javascript errors on my browser and the nice frame around the text doesn’t show up.
Is there a workaround for this?
Thanks. (spent almost all day narrowing the problem down to this)
Hello Amit,
Regarding to my report on the case of br tag has failed to display in code block powered by iG:Syntax Hiliter, you can see it here http://phpvietnam.net/blog/2006/03/20/iterator-trong-php/#more-593
You can see that there are a br tag enclosed by single quote after each echo statement
The statement echo $value.”;
should be displayed as :
echo $value.”;
In fact, it is
echo $value.’
‘;
Regards,
Dinh
Peter, I’ve posted a reply at the WP forums. Its at http://wordpress.org/support/topic/10533/page/2#post-352496
pcdinh, the plugin is not the culprit there, either you are hitting the ENTER key after the starting quote or some other plugin you are using is doing it!!
Thanks Amit. Hoping you can find the problem with my / verses /wp install problem. I really like this formatting control. I’ve been trying to work around but with no luck.
-Peter
Any luck on finding my /wp verses / issue? Just wondering if you can even duplicate the problem. If not, then I’ll try some other way to solve it.
thanks, -Peter
no well, I’ve been busy for sometime, so haven’t really had any chance to look into the issue. I’ll look into it, but don’t hold out your hopes for a quick solution since I’ll be quite busy this week & the next. 🙂
Pettry awesome plugin. I’m having a couple of issues though. I’m using the default wp theme and the code box is overlapping the right column of my blog page (where the archive and categories etc lists are). The other issue I’m having is all indentation is being removed from my code.
OK, I figured out how to set the width in syntax_hilite_css.css (can that be in options?).
Still not getting indentation though.
I think not. Code parsing done by GeSHi as of now is heavy in itself, so better not make everything else heavy too. So I’ve kept only the necessary options in the admin interface. Width is not something that you would change frequently, so I don’t think editing the CSS file once in while is a big deal!! 😉
How are you using indentation? Are you using tabs or spaces? If using tabs then it shouldn’t have any problems & if you are using spaces then also it shouldn’t pose any problems, my code posts on this blog & posts of other people using this plugin are sufficient proofs of it!! 🙂 Are you using TinyMCE or any other WYSIWYG editor to post your stuff? If yes then try it after turning off the editor!! 🙂
I can’t download the file
Yien, its working alright, I tried to download it from 2 different computers & it works. Try downloading again.
Hi Amit,
Just wondering if you ever looked at the / verse /wp problem? It’s been a while.
Thanks, -Peter
Peter, I’m really sorry. It just slipped out of my mind. I’ll look into it asap, I promise. 🙂
No problem. I kind of lost track of it also.
I love it.
Everything works fine and now I can show my code in a clean format.
Thx much !!!
PS: I can’t see nothing more to say. Maybe putting more option in the plugin option page to be able to tweak it as we want …
:thumbs up:
Does your plugin support WP 2.1? I’ve tried on my installation but I only get a blank screen…
Don’t mind… it was my fault, I didn’t put ig_syntax_hilite in the plugin directory. I did it and everything went fine, even if I don’t understand why you managed to split the plugin into two different directories at then /plugin level. Excellent work!