This project is read-only.

C Comment HTML coloring

Sep 12, 2016 at 4:24 PM
Fantastic tool, wow!

Is it possible to change to the color of C comments in the output HTML files? C comments are rendered in red, which is close enough to highlighted red sections (code which has not been covered) to where it's, well, a little disconcerting.

Can the color of C comments be changed to something more neutral?

Sep 14, 2016 at 12:24 PM

I am happy you find OpenCppCoverage useful.

The HTML report is generated using a HTML template located in "Template" folder in your installation folder.

The syntax highlightning is performed by the library code-pretiffy.
The getting_started page explains how to configure it.

In your case, you probably want to update the theme defined in prettify-CppCoverage.css located in Template\third-party\google-code-prettify.
This page shows some examples of theme.
prettify-CppCoverage.css is a minified version of the default theme so you just need to edit this file.

I hope this will help,

Sep 14, 2016 at 2:02 PM
Thanks for the quick response! That is most helpful.

Marked as answer by OpenCppCoverage on 11/27/2016 at 7:07 AM