We'll create fresh WordPress site with Highlight Source Pro installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Powerful, flexible, XHTML-compliant, server-side code highlighting, credits for everything
but ‘making it a plugin’ go to Jay Pipes
and GeSHi.
<div>
, <ul>
, <span>
with class-attributes and a css-file are used for styling <pre>
-tags with the lang=
-attribute, thus does not interfere with any regular preformatted contents you might have<pre>
-tags (if you keep the sources clean, that is)While the plugin is basically XHTML 1.0 Strict compliant there’s just no way of getting the offset-based line-numbering to display without inadequate (ab)use of javascript and css hacks, so be warned that IF you use the line-number offset, your documents will NOT validate because of the forbidden start=
-attribute for the <ol>
!
More on the Highlight Source Pro Page