Skip to content
An API Blueprint Lexer for Pygments
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
pygments_apiblueprint feat: Support analysing text May 9, 2017
.gitignore Initial project May 9, 2017
.travis.yml feat: Support analysing text May 9, 2017
LICENSE Initial project May 9, 2017 docs: Add screenshot to README May 9, 2017
pygments_apiblueprint.png Initial project May 9, 2017

Pygments API Blueprint


$ pip install pygments-apiblueprint


Once installed, the Pygments API Blueprint lexer is instantly available to Pygments.

from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments_apiblueprint import APIBlueprintLexer

source = '''
# GET /

+ Response 200 (application/json)
    + Attributes
        + name: `pygments-apiblueprint`

lexer = APIBlueprintLexer()
formatter = HtmlFormatter(linenos='table', cssclass='highlight')
result = highlight(source, lexer, formatter)



You can’t perform that action at this time.