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 = 'HTML+PHP'
list aliases = ['html+php']
list filenames = ['*.phtml']
list alias_filenames
list mimetypes

Detailed Description

Subclass of `PhpLexer` that highlights unhandled data with the `HtmlLexer`.

Nested Javascript and CSS is highlighted too.

Definition at line 912 of file

Constructor & Destructor Documentation

Definition at line 928 of file

00929     def __init__(self, **options):
00930         super(HtmlPhpLexer, self).__init__(HtmlLexer, PhpLexer, **options)

Member Function Documentation

Definition at line 931 of file

00932     def analyse_text(text):
00933         rv = PhpLexer.analyse_text(text) - 0.01
00934         if html_doctype_matches(text):
00935             rv += 0.5
00936         return rv

Member Data Documentation

Initial value:
['*.php', '*.html', '*.htm', '*.xhtml',

Definition at line 922 of file

Definition at line 920 of file

Definition at line 921 of file

Initial value:
                 'application/x-httpd-php', 'application/x-httpd-php3',
                 'application/x-httpd-php4', 'application/x-httpd-php5']

Definition at line 924 of file

Definition at line 919 of file

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