mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pygments highlighting rules for Solidity.
This commit is contained in:
+6
-2
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user