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:


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -