Back to index

moin  1.9.0~rc2
Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

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']

Detailed Description

For `PHP <>`_ source code.
For PHP embedded in HTML, use the `HtmlPhpLexer`.

Additional options accepted:

    If given and ``True`` the lexer starts highlighting with
    php code (i.e.: no starting ``<?php`` required).  The default
    is ``False``.
    If given and ``True``, highlight builtin function names
    (default: ``True``).
    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

Member Data Documentation

list = ['php', 'php3', 'php4', 'php5'] [static]

Definition at line 483 of file

list = ['*.php', '*.php[345]'] [static]

Definition at line 484 of file = re.IGNORECASE|re.DOTALL|re.MULTILINE [static]

Definition at line 487 of file

Definition at line 485 of file

Definition at line 482 of file

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