Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'HTML+Smarty'
list aliases = ['html+smarty']
list alias_filenames = ['*.html', '*.htm', '*.xhtml', '*.tpl']
list mimetypes = ['text/html+smarty']

Detailed Description

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

Nested Javascript and CSS is highlighted too.

Definition at line 996 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1009 of file templates.py.

01009 
01010     def __init__(self, **options):
01011         super(HtmlSmartyLexer, self).__init__(HtmlLexer, SmartyLexer, **options)


Member Function Documentation

Definition at line 1012 of file templates.py.

01012 
01013     def analyse_text(text):
01014         rv = SmartyLexer.analyse_text(text) - 0.01
01015         if html_doctype_matches(text):
01016             rv += 0.5
01017         return rv
01018 


Member Data Documentation

list MoinMoin.support.pygments.lexers.templates.HtmlSmartyLexer.alias_filenames = ['*.html', '*.htm', '*.xhtml', '*.tpl'] [static]

Definition at line 1006 of file templates.py.

Definition at line 1005 of file templates.py.

Definition at line 1007 of file templates.py.

Definition at line 1004 of file templates.py.


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