php - HTML5 tag to display syntax highlighting -
i wondering if there tag auto-highlights syntax of html , or php in html5. i'm writing guide has code in it. since i'm using lot of new html5 tags (i use section outline of guide) use in native html5.
if not exist, best way this? (like, php , css?)
there's nothing in html5 afraid, can use highlight_string()
php. if want purely on client side, try js highlighter prettify, stackoverflow uses code highlighting:
http://code.google.com/p/google-code-prettify/
here other ones:
- syntaxhighlighter
- shjs (uses gnu source-highlight definitions)
Comments
Post a Comment