diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-23 11:00:53 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-23 11:00:53 -0400 |
| commit | c4b8bbcc019167cc72bf03aa6842630e27d54b97 (patch) | |
| tree | e866be6e9fbf4af8ec95e5ea20ca899dd7392910 /coverage/htmlfiles | |
| parent | 7dd6a0658ded9014d5f400afe0b3e7d502c24ea9 (diff) | |
| download | python-coveragepy-c4b8bbcc019167cc72bf03aa6842630e27d54b97.tar.gz | |
Syntax coloring in the HTML reports.
Diffstat (limited to 'coverage/htmlfiles')
| -rw-r--r-- | coverage/htmlfiles/pyfile.html | 2 | ||||
| -rw-r--r-- | coverage/htmlfiles/style.css | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index d1810fa..a7cd1d3 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -43,7 +43,7 @@ function toggle_lines(btn, cls) { </td>
<td class='text' valign='top'>
{% for line in lines %}
- <p class='{{line.class}}'>{{line.text.rstrip|escape|not_empty}}</p>
+ <p class='{{line.class}}'>{{line.html}}<span class="strut"> </span></p>
{% endfor %}
</td>
</tr>
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index d9d324c..ef57755 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -124,6 +124,20 @@ td.text { background: inherit; } +/* Syntax coloring */ +.text .com { + color: green; + font-style: italic; + line-height: 1px; + } +.text .key { + font-weight: bold; + line-height: 1px; + } +.text .str { + color: #000080; + } + /* index styles */ #index td, #index th { text-align: right; |
