Most syntax highlighters use either shortcodes or make you add some obscure CSS classes to all <pre> tags that you want to highlight. Even WordPress.com does that.
Introducing Code Prettify Syntax Highlighting Plugin
Code Prettify for WordPress is a new plugin with just 31 line of code that enqueues the Google Code Prettify library (one minified javascript file) which then parses all <pre> tags on the page, detects the correct language and lazy-loads the necessary syntax module, and applies the highlighting.
No shortcodes, no custom CSS classes — just magic.




