{ Rouge }

An elegant, extendable code highlighter written in pure Ruby.

Available on GitHub

def foo(
    bar,
    optional=None,
):
    """Docstring.

    Parameters
    ----------
    foo : str
        FOO.
    bar : str
        BAR!

    Example
    -------
    >>> import foo as bar
    >>>
    >>> asdf = '''
    >>> 
    >>> '''
    >>> bar()

    """
    # foobar
    print(foo)