Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

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

Constructor & Destructor Documentation

Definition at line 842 of file

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

Member Function Documentation

Definition at line 845 of file

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

Member Data Documentation

list = ['*.html', '*.htm', '*.xhtml'] [static]

Definition at line 839 of file

list = ['rhtml', 'html+erb', 'html+ruby'] [static]

Definition at line 837 of file

Definition at line 838 of file

Definition at line 840 of file

Definition at line 836 of file

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