Back to index

moin  1.9.0~rc2
Static Public Attributes
MoinMoin.support.pygments.lexers.web.PhpLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.web.PhpLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.web.PhpLexer:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string name = 'PHP'
list aliases = ['php', 'php3', 'php4', 'php5']
list filenames = ['*.php', '*.php[345]']
list mimetypes = ['text/x-php']
 flags = re.IGNORECASE|re.DOTALL|re.MULTILINE

Detailed Description

For `PHP <http://www.php.net/>`_ source code.
For PHP embedded in HTML, use the `HtmlPhpLexer`.

Additional options accepted:

`startinline`
    If given and ``True`` the lexer starts highlighting with
    php code (i.e.: no starting ``<?php`` required).  The default
    is ``False``.
`funcnamehighlighting`
    If given and ``True``, highlight builtin function names
    (default: ``True``).
`disabledmodules`
    If given, must be a list of module names whose function names
    should not be highlighted. By default all modules are highlighted
    except the special ``'unknown'`` module that includes functions
    that are known to php but are undocumented.

    To get a list of allowed modules have a look into the
    `_phpbuiltins` module:

    .. sourcecode:: pycon

        >>> from pygments.lexers._phpbuiltins import MODULES
        >>> MODULES.keys()
        ['PHP Options/Info', 'Zip', 'dba', ...]

    In fact the names of those modules match the module names from
    the php documentation.

Definition at line 449 of file web.py.


Member Data Documentation

list MoinMoin.support.pygments.lexers.web.PhpLexer.aliases = ['php', 'php3', 'php4', 'php5'] [static]

Definition at line 483 of file web.py.

list MoinMoin.support.pygments.lexers.web.PhpLexer.filenames = ['*.php', '*.php[345]'] [static]

Definition at line 484 of file web.py.

MoinMoin.support.pygments.lexers.web.PhpLexer.flags = re.IGNORECASE|re.DOTALL|re.MULTILINE [static]

Definition at line 487 of file web.py.

Definition at line 485 of file web.py.

Definition at line 482 of file web.py.


The documentation for this class was generated from the following file: