Starlight - syntax hilighting for JavaScript/CSS/HTML/PHPetc

Started by Darren Dirt, September 13, 2005, 04:05:35 PM

Previous topic - Next topic

Darren Dirt

Sometimes you want to have some HTML showing some code but don't want boring old blacktext-on-whitescreen.



This tiny little snippet of code seems to intelligently hilight the syntax -- works for JavaScript/CSS/HTML/PHP listings

... even email/forum discussions (i.e. converts : ) to :), ; ) to ;) etc. )



http://dean.edwards.name/download/#others





direct link - included in the ZIP is index.html showing a sample of each -- quite nice :)

http://dean.edwards.name/download/star-light.zip



- - -



...just skimmed the ZIP contents, and since I can't see easily how you would use the code, I found some pages on his site that help make that more understandable...



http://dean.edwards.name/my/behaviors/#star-light.htc



a better example:

http://dean.edwards.name/my/examples/star-light/
_____________________

Strive for progress. Not perfection.
_____________________