lang-llvm.js adds LLVM assembly language syntax highlighting support to google-code-prettify. I wrote this in response to a question on StackOverflow.
See the google-code-prettify README for instructions on how to setup google-code-prettify. Then:
- Include lang-llvm.js in your HTML head tag, after prettify.js. This file is now included in the official google-code-prettify distribution.
- Markup your LLVM code like this:
<pre class="prettyprint lang-llvm">(my LLVM code)</pre>
The regular expressions were stolen from the TextMate syntax file from the LLVM TextMate Bundle project.
Nikhil, I'm the maintainer of google-code-prettify. Would you mind if I included this in code.google.com/p/google-code-prettify? If so, do you know whether the original TextMate syntax file and LLVM bundle project are license compatible with the Apache 2.0 license and do you mind if I slap a copyright header with your name on top?