kbits-theme-demo Demonstration of kbits-theme for Pelican
Atom · RSS

Articles Tagged with “syntax highlighting”

Atom · RSS

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 …