Pygments highlighting rules for Solidity.

This commit is contained in:
chriseth
2015-12-10 17:30:33 +01:00
parent 251e7aa462
commit c7ec85754a
2 changed files with 91 additions and 2 deletions
+6 -2
View File
@@ -19,7 +19,11 @@ import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
def setup(sphinx):
sys.path.insert(0, os.path.abspath('./utils'))
from SolidityLexer import SolidityLexer
sphinx.add_lexer('Solidity', SolidityLexer())
# -- General configuration ------------------------------------------------
@@ -88,7 +92,7 @@ exclude_patterns = ['_build']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
highlight_language = 'javascript'
highlight_language = 'Solidity'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []