Web Browser Syntax Highlighting
Adding Web Browser Syntax Highlighting
How it Works
The top four comments are a basic HTML <head></head> section. These load the open source SyntaxHighlighter from the server. The fifth comment starts a HTML <body> and opens a <pre tag. This tells the browser that the rest of the configuration is formatted plain text. This prevents the browser from wrapping lines and otherwise destroying the formatting of the file and alto tells the highlighter what language to to look for when performing highlights.
The last line tells SyntaxHighlighter to actually do the highlighting and closes the <pre>, <body>, and the <HTML> tags.