=> Chuck Highlighter v0.9.1
built by Scott Hewitt www.ablelemon.co.uk/chuckhl
Copy chuckhlib.php5 and chuckhighlightcss into working directory
Include chuckhlib.php5 in file
Then call function with file to be processed
Outputs file contents within
Online demo here.
Does not handle numbers within strings ed. “arg1″ solution: manual add to
Included in download
//File must be included<br />
//call lib function chuckhighlight and then file to highlight<br />
//just draws a line<br />
//works on second file<br />
Basic PHP string substitution done using str_replace, this attaches html span tags.
These are styled by the attached css file.
This means that you could swap out the css file for your own styling if you wish.
=> Change Log
Corrected code to handle multiline comments /* */