iG:Syntax Hiliter plugin with WordPress 2.5.1

Translation of the original in Catalan. Read it in: CatalàCastellano

At last I've found a highlighting plugin I like, I found it today through the blog of François Zaninotto. A pity that the plugin is quite old, there haven't been updates since 2006. When I installed it on Wordpress 2.5.1 it gave me a permissions problem even though I was logged in as administrator. So in a moment I did a workaround for it, that is, since I'm the only one using the blog right now and I don't use the users I skipped the check it does to see if I have permissions. That way I've been able to configure it properly.

In case someone wants to do the same, in the syntax_hilite.php file I've commented out the lines we can see below:

[php num=268]<br>//function for the Admin GUI<br>function igSynHilite_GUI() {<br>global $user_level, $igWpVersion;<br>get_currentuserinfo();<br>//if user is not an admin equalling/above level 8, then don't give any GUI<br>/*<br>if ($user_level &lt; 8) { ?&gt;<br><div class="wrap"><br><h2>iG:Syntax Hiliter(v<!--?php print(IG_VERSION); ?-->) Configuration</h2><br><!--?php _e("<br><br>&lt;div style="color:#770000;"&gt;You are not a &lt;strong&gt;LEVEL 8&lt;/strong&gt; or above USER &amp;amp;&lt;br ?--> hence you cannot configure <strong>iG:Syntax Hiliter</strong>. If you are a <strong>LEVEL 8</strong> or above USER,<br>then please Logout &amp; Login again.<br><br></div><br>"); ?&gt;<br><br>&lt;?php return; } */ if(!empty($_POST['igsh_plainTxt'])) { [/php]

Also, the directories created by the .zip file of the plugin page aren't compatible with WordPress 2.5.1. That is, I'm attaching a .tar.gz with the files I've put in BLOG_HOME/wp-content/plugins.

By the way, the look'&'feel of the plugin is the one you can see in the code above.

1 comment

Comments from the old blog, as they were written. Comments are closed.

  1. Jorge Huerga

    Per fi! un plugin decent per a poder veure el codi com deu mana. He trovat una versió que a mi em satisfà més, encara que és una versió evolucionada del mateix que el teu. N'he fet una ressenya al meu blog http://jorge.huerga.org/2008/07/sintax-hiliter-coloreo-de-codigo-para-wordpress-25/