Ejemplo n.º 1
0
            def check_Rst(filer):
                from pygments.lexers.text import RstLexer  #

                file_to_check = str(filer)
                return RstLexer.analyse_text(file_to_check)
Ejemplo n.º 2
0
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'symfonycom.sphinx.SensioStyle'

# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []

# -- Settings for symfony doc extension ---------------------------------------------------

# enable highlighting for PHP code not between ``<?php ... ?>`` by default
lexers['markdown'] = TextLexer()
lexers['php'] = PhpLexer(startinline=True)
lexers['php-annotations'] = PhpLexer(startinline=True)
lexers['php-attributes'] = PhpLexer(startinline=True)
lexers['php-standalone'] = PhpLexer(startinline=True)
lexers['php-symfony'] = PhpLexer(startinline=True)
lexers['rst'] = RstLexer()
lexers['varnish2'] = CLexer()
lexers['varnish3'] = CLexer()
lexers['varnish4'] = CLexer()
lexers['terminal'] = TerminalLexer()
lexers['env'] = BashLexer()

config_block = {
    'apache': 'Apache',
    'markdown': 'Markdown',
    'nginx': 'Nginx',
    'rst': 'reStructuredText',
    'varnish2': 'Varnish 2',
    'varnish3': 'Varnish 3',
    'varnish4': 'Varnish 4',
    'env': '.env'
Ejemplo n.º 3
0
            def check_Rst(filer):
                from pygments.lexers.text import RstLexer #

                file_to_check = str(filer)
                return RstLexer.analyse_text(file_to_check)