Commit e80d1850 authored by Michal Čihař's avatar Michal Čihař

Highlight tabs in source

parent 76e8c96d
...@@ -60,6 +60,10 @@ ul.breadcrumbs li { ...@@ -60,6 +60,10 @@ ul.breadcrumbs li {
white-space: pre; white-space: pre;
display: inline-block; display: inline-block;
} }
.space-tab {
width: 4em;
text-align: center;
}
.suggestionactions { .suggestionactions {
float: right; float: right;
} }
......
...@@ -41,6 +41,7 @@ register = template.Library() ...@@ -41,6 +41,7 @@ register = template.Library()
def fmt_whitespace(value): def fmt_whitespace(value):
value = re.sub(r'( +| $|^ )', '<span class="hlspace">\\1</span>', value) value = re.sub(r'( +| $|^ )', '<span class="hlspace">\\1</span>', value)
value = value.replace('\t', u'<span class="hlspace space-tab">⇢</span>')
return value return value
@register.filter @register.filter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment