padding-left: 5px;
}
-strong.hilight {
- padding-left: 0.1em;
+strong.success {
+ padding-left: 0.1em;
+ background-color: #22ee22;
+}
+
+strong.notice {
+ padding-left: 0.1em;
+ background-color: #ffdd44;
+}
+
+strong.error {
+ padding-left: 0.1em;
background-color: #ee2222;
}
return '</pre>'
return ''
- def _hilight_repl(self, word):
- return '<strong class="hilight">' + word + '</strong>'
+ def _hi_repl(self, word):
+ if word == 'FIXME':
+ cl = 'error'
+ elif word == 'DONE':
+ cl = 'success'
+ elif word == 'TODO':
+ cl = 'notice'
+ return '<strong class="highlight ' + cl + '">' + word + '</strong>'
def _var_repl(self, word):
if word == '{{' and not self.in_var:
+ r"|(?P<tit>\={2,6})"
+ r"|(?P<rule>^-{3,})"
+ r"|(?P<ent>[<>&])"
- + r"|(?P<hilight>\b(FIXME|TODO)\b)"
+ + r"|(?P<hi>\b(FIXME|TODO|DONE)\b)"
# Links
+ r"|(?P<img>\b[a-zA-Z0-9_-]+\.(png|gif|jpg|jpeg|bmp))"