Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

Easy PHP highlighter

TrackBack | Filed by Thomas under Internet stuff, Programming | Post popularity 4%

Easy PHP Highlighter is a small application that highlights the source of a PHP file and outputs it to a XHTML valid html file for easy viewing by other people. It has language support for English, German, Spanish, and Portuguese.

PHP Highlight Example (A MySQL backup class used in my latest CMS)

The real beauty is the ease of use. You simply start the application, browse and select a file and the new XHTML output file is automatically created in the same directory you picked the file from.

You can probably use it to highlight JavaScripts as well, but for now (version 2) you can only select files with a PHP extension. Not that it limits anything as you could just alter the extension temporarily to create the output file.

Update: In order to highlight Java code (or any other code) the page you’re going to “transform” needs to have the PHP tags inserted (Start of page -> <?php and at the end -> ?>) along with a PHP file extension. The following example illustrates my point (My Lightbox Media JavaScript add-on).

It works but requires more work -> time-consuming -> boring -> needs fix…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments

No comments yet.

Leave a Comment

Akismet has protected Blogvaria from 71,688 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 1.812 pages so far today, an amazing 4.008 pages yesterday
and even more astonishingly 101.462 pages since 12 September 2008 alone without dropping a byte nor a pixel.

Close
E-mail It