python-cheatsheet
python-cheatsheet copied to clipboard
Highlight types such as <type> in Python code blocks
Simply runs a regex replacement after highlight.js does the rest of the
highlighting. As a consequence, it does not highlight strings such as
<class>
which contain a Python keyword. This is relatively infrequent
though.
Interesting, but adding another color is a bit much for my taste.
Same for my taste. This simple bolding looks much better.
Also importantly, it preserves color within strings, which the green highlighting did not