Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin.support.pygments.lexers.templates.XmlPhpLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.templates.XmlPhpLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.templates.XmlPhpLexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'XML+PHP'
list aliases = ['xml+php']
list alias_filenames = ['*.xml', '*.php', '*.php[345]']
list mimetypes = ['application/xml+php']

Detailed Description

Subclass of `PhpLexer` that higlights unhandled data with the `XmlLexer`.

Definition at line 938 of file templates.py.


Constructor & Destructor Documentation

Definition at line 948 of file templates.py.

00948 
00949     def __init__(self, **options):
00950         super(XmlPhpLexer, self).__init__(XmlLexer, PhpLexer, **options)


Member Function Documentation

Definition at line 951 of file templates.py.

00951 
00952     def analyse_text(text):
00953         rv = PhpLexer.analyse_text(text) - 0.01
00954         if looks_like_xml(text):
00955             rv += 0.4
00956         return rv
00957 


Member Data Documentation

list MoinMoin.support.pygments.lexers.templates.XmlPhpLexer.alias_filenames = ['*.xml', '*.php', '*.php[345]'] [static]

Definition at line 945 of file templates.py.

Definition at line 944 of file templates.py.

Definition at line 946 of file templates.py.

Definition at line 943 of file templates.py.


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