Apply style to anything that looks like an email.
| 8 | |
| 9 | |
| 10 | class EmailHighlighter(RegexHighlighter): |
| 11 | """Apply style to anything that looks like an email.""" |
| 12 | |
| 13 | base_style = "example." |
| 14 | highlights = [r"(?P<email>[\w-]+@([\w-]+\.)+[\w-]+)"] |
| 15 | |
| 16 | |
| 17 | theme = Theme({"example.email": "bold magenta"}) |
no outgoing calls
no test coverage detected
searching dependent graphs…