Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'RHTML'
list aliases = ['rhtml', 'html+erb', 'html+ruby']
list filenames = ['*.rhtml']
list alias_filenames = ['*.html', '*.htm', '*.xhtml']
list mimetypes = ['text/html+ruby']

Detailed Description

Subclass of the ERB lexer that highlights the unlexed data with the
html lexer.

Nested Javascript and CSS is highlighted too.

Definition at line 828 of file templates.py.


Constructor & Destructor Documentation

Definition at line 842 of file templates.py.

00842 
00843     def __init__(self, **options):
00844         super(RhtmlLexer, self).__init__(HtmlLexer, ErbLexer, **options)


Member Function Documentation

Definition at line 845 of file templates.py.

00845 
00846     def analyse_text(text):
00847         rv = ErbLexer.analyse_text(text) - 0.01
00848         if html_doctype_matches(text):
00849             # one more than the XmlErbLexer returns
00850             rv += 0.5
00851         return rv
00852 


Member Data Documentation

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

Definition at line 839 of file templates.py.

list MoinMoin.support.pygments.lexers.templates.RhtmlLexer.aliases = ['rhtml', 'html+erb', 'html+ruby'] [static]

Definition at line 837 of file templates.py.

Definition at line 838 of file templates.py.

Definition at line 840 of file templates.py.

Definition at line 836 of file templates.py.


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