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

Highlight tabs in source

parent 76e8c96d
......@@ -60,6 +60,10 @@ ul.breadcrumbs li {
white-space: pre;
display: inline-block;
}
.space-tab {
width: 4em;
text-align: center;
}
.suggestionactions {
float: right;
}
......
......@@ -41,6 +41,7 @@ register = template.Library()
def fmt_whitespace(value):
value = re.sub(r'( +| $|^ )', '<span class="hlspace">\\1</span>', value)
value = value.replace('\t', u'<span class="hlspace space-tab">⇢</span>')
return value
@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