New PHP Highlighter In Town

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

<?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.

Tagged: , .

4 Responses

  1. nasal Says:
    November 6th, 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!

  2. Frank Verhoeven Says:
    November 6th, 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?

  3. nasal Says:
    November 16th, 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!

  4. kurye Says:
    September 1st, 2009 at 8:26 pm

    New PHP Highlighter In Town – Frank Verhoeven great article thank you.

Leave a Reply