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.
@mikesamuel, I would love it if this was included in the google-code-prettify project! I have no problems in re-licensing this under the Apache 2.0 license, please go ahead. If you need to provide some sort of link with my name, you can use http://www.nikhildabas.com/.
The original project where I got the regular expressions from has not specified a license, so I guess adding a link to the project should be enough.
Let me know if you need anything else from me to make this happen.