aboutsummaryrefslogtreecommitdiff
path: root/lib/Rewrite/HTMLRewrite.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-19 23:55:53 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-19 23:55:53 +0000
commit0f1b67bc25058b71eacc0d9ef85075fff23e7b31 (patch)
tree8d68a0fe65ed6f711db5f60110f52a9c7474d856 /lib/Rewrite/HTMLRewrite.cpp
parent0d755ad7d8650dc52eeff25cc3f5bb1a2c93483d (diff)
Added HTML highlighting for ranges.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/HTMLRewrite.cpp')
-rw-r--r--lib/Rewrite/HTMLRewrite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp
index 76c44b718c..788b41bd0e 100644
--- a/lib/Rewrite/HTMLRewrite.cpp
+++ b/lib/Rewrite/HTMLRewrite.cpp
@@ -143,6 +143,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
<< " .code { line-height: 1.2em }\n"
<< " .num { width:2.5em; padding-right:2ex; background-color:#eeeeee }\n"
<< " .num { text-align:right; font-size: smaller }\n"
+ << " .num { color:#444444 }\n"
<< " .line { padding-left: 1ex; border-left: 3px solid #ccc }\n"
<< " .line { white-space: pre }\n"
<< " .msg { background-color:#ff8000; color:#000000 }\n"
@@ -152,6 +153,8 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
<< " .msg { float:left }\n"
<< " .msg { padding:0.5em 1ex 0.5em 1ex }\n"
<< " .msg { margin-top:10px; margin-bottom:10px }\n"
+ << " .mrange { color:#ff8000 }\n"
+ << " .mrange { border-bottom: 1px dotted #ff8000 }\n"
<< "</style>\n</head>\n<body>";
R.InsertStrBefore(StartLoc, os.str());