An API Blueprint Lexer for Pygments
BSD-3-CLAUSE License
$ 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)
print(result)