Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'HTML+Django/Jinja'
list aliases = ['html+django', 'html+jinja']
list alias_filenames = ['*.html', '*.htm', '*.xhtml']
list mimetypes = ['text/html+django', 'text/html+jinja']

Detailed Description

Subclass of the `DjangoLexer` that highighlights unlexed data with the
`HtmlLexer`.

Nested Javascript and CSS is highlighted too.

Definition at line 1079 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1092 of file templates.py.

01092 
01093     def __init__(self, **options):
01094         super(HtmlDjangoLexer, self).__init__(HtmlLexer, DjangoLexer, **options)


Member Function Documentation

Definition at line 1095 of file templates.py.

01095 
01096     def analyse_text(text):
01097         rv = DjangoLexer.analyse_text(text) - 0.01
01098         if html_doctype_matches(text):
01099             rv += 0.5
01100         return rv
01101 


Member Data Documentation

Definition at line 1089 of file templates.py.

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

Definition at line 1088 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.HtmlDjangoLexer.mimetypes = ['text/html+django', 'text/html+jinja'] [static]

Definition at line 1090 of file templates.py.

Definition at line 1087 of file templates.py.


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