Syntax Highlighting with reStructuredText
kbits-theme uses Pygments’ “default” style for code syntax highlighting. Let’s see some examples!
reStructuredText has a built-in directive for syntax highlighting, the “code” directive. Here’s what the output of that directive looks like in kbits-theme:
from itertools import compress def subsets(xs, nonempty=False, proper=False): """ Returns an …