[llvm-commits] [patch] demo website colored terminal/clang output

Tanya Lattner lattner at apple.com
Fri Aug 5 11:42:14 PDT 2011


David,

I think there is something wrong with the regex in syntaxHighlightConsoleOutput. I'm trying to debug it right now.

-Tanya

On Aug 5, 2011, at 12:08 AM, David Blaikie wrote:

> I've worked up a pretty simple modification to the LLVM/clang demo
> page to add coloring based on the terminal output of clang.
> 
> I'm sure there are better ways to do this - both the regex work in
> perl & the stylesheet, but it's a start & I'm happy to work up any
> suggested/requested changes.
> 
> There's also a library designed to do this if you're willing to
> install that on the demo server & are looking for a more general
> solution (my regex based solution only solves a handful of cases -
> namely those that clang outputs):
> 
> http://search.cpan.org/~nuffin/HTML-FromANSI-2.03/lib/HTML/FromANSI.pm
> 
> I've attached an example html page (which would need to be placed
> alongside the patched syntax.css) to show what the output should look
> like. Though I've not tested this using the actual script on a web
> server - only the regex alone by pulling it out into a separate test
> script.
> 
> - David
> <demo.html><colordemo.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list