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

David Blaikie dblaikie at gmail.com
Fri Aug 5 18:39:41 PDT 2011


>> I wonder whether escapeHTML would escape the \033 control code used by
>> the terminal coloring?
>
> Looks like this isn't the case. Simply inverting the escape/highlight
> calls fixes this issue. (attached a modified patch)
>
> If you're seeing other problems I'll gladly help out if I can.

& 3rd time's the charm (patch attached). I've got a setup where I can
actually run the whole demo page now, so I found one more bug - a
clear typo in the variable name used inside the
syntaxHighlightConsoleOutput function (initialized 'input' but regexed
an unknown variable called 'line'). This now executes correctly for me
doing all the things the demo site seems to be meant to do.

- David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colordemo.patch
Type: application/octet-stream
Size: 1253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110805/61dfcb73/attachment.obj>


More information about the llvm-commits mailing list