We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e16197 commit 115e696Copy full SHA for 115e696
html-writer.cc
@@ -470,8 +470,20 @@ void HtmlWriter::handleDef(const Defect &def) {
470
d->str << ": ";
471
}
472
473
+ static CtxEventDetector detector;
474
+ const bool isCtxLine = detector.isAnyCtxLine(evt);
475
+ if (isCtxLine) {
476
+ const char *color = (detector.isKeyCtxLine(evt))
477
+ ? "000000"
478
+ : "C0C0C0";
479
+ d->str << "<span style='color: #" << color << ";'>";
480
+ }
481
+
482
d->str << HtmlLib::escapeTextInline(evt.msg);
483
484
+ if (isCtxLine)
485
+ d->str << "</span>";
486
487
switch (evt.verbosityLevel) {
488
case 1:
489
case 2:
0 commit comments