Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'XML+Django/Jinja'
list aliases = ['xml+django', 'xml+jinja']
list alias_filenames = ['*.xml']
list mimetypes = ['application/xml+django', 'application/xml+jinja']

Detailed Description

Subclass of the `DjangoLexer` that highlights unlexed data with the
`XmlLexer`.

Definition at line 1102 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1113 of file templates.py.

01113 
01114     def __init__(self, **options):
01115         super(XmlDjangoLexer, self).__init__(XmlLexer, DjangoLexer, **options)


Member Function Documentation

Definition at line 1116 of file templates.py.

01116 
01117     def analyse_text(text):
01118         rv = DjangoLexer.analyse_text(text) - 0.01
01119         if looks_like_xml(text):
01120             rv += 0.4
01121         return rv
01122 


Member Data Documentation

Definition at line 1110 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.XmlDjangoLexer.aliases = ['xml+django', 'xml+jinja'] [static]

Definition at line 1109 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.XmlDjangoLexer.mimetypes = ['application/xml+django', 'application/xml+jinja'] [static]

Definition at line 1111 of file templates.py.

Definition at line 1108 of file templates.py.


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