Hey everyone,
As you could have read here, the current release of my code highlighter has some trouble with highlighting PHP on servers running PHP version 4. I told you I should try to fix the problem and include a better PHP highlighter in the next release.
I worked very hard this morning to get PHP fixed, and I’m proud to announce that PHP is almost working the way it should. That means: including servers running PHP4.
You want an example? Sure, here it is:
PHP Code Like It Should
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
mysql_connect ($host, $user, $password);
$result = mysql_db_query ('Database', 'select * from table');
while ($row = mysql_fetch_assoc ($result))
{
echo $row['user_id'];
echo $row['fullname'];
}
mysql_free_result ($result);
?>
So, What’s Next?
After this highlighter is finished, I create one for JavaScript and properly one for Java. As soon as they all work the way it should, I will release version 1.1.
See you.













November 6, 2008 at 3:57 AM
hello!
thanks for the plugin, it is very nice.. but i have a problem with it in a theme.. the point is not all of the font in the pre tag becomes courier new, some of the text stays unmodified..
is it because of the theme? i tried putting an !important in the stylesheet of the plugin near the font but still nothing..
you can check it here: iBlog
thanks!
November 6, 2008 at 4:30 PM
So you already tried to add this in the admin (Appearance – Code Highlighter)
font-family: "Courier New", Courier, monospace;It is strange, because in all the stylesheets included in your page, there isn’t styled the pre tag once. Are other code types also not displayed with courier?
November 16, 2008 at 8:26 PM
yes i tried that line..
none of the types seems working fine but it’s only with this theme.. and i really don’t know why since, as you said, the pre tag isn’t defined..
thanks for your answer!
September 1, 2009 at 8:26 PM
New PHP Highlighter In Town – Frank Verhoeven great article thank you.