Back to index

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

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'aspx-cs'
list aliases = ['aspx-cs']
list filenames = ['*.aspx', '*.asax', '*.ascx', '*.ashx', '*.asmx', '*.axd']
list mimetypes = []

Detailed Description

Lexer for highligting C# within ASP.NET pages.

Definition at line 316 of file dotnet.py.


Constructor & Destructor Documentation

Definition at line 326 of file dotnet.py.

00326 
00327     def __init__(self, **options):
00328         super(CSharpAspxLexer, self).__init__(CSharpLexer,GenericAspxLexer,
00329                                               **options)


Member Function Documentation

Definition at line 330 of file dotnet.py.

00330 
00331     def analyse_text(text):
00332         if re.search(r'Page\s*Language="C#"', text, re.I) is not None:
00333             return 0.2
00334         elif re.search(r'script[^>]+language=["\']C#', text, re.I) is not None:
00335             return 0.15
00336         return 0.001 # TODO really only for when filename matched...


Member Data Documentation

Definition at line 322 of file dotnet.py.

list MoinMoin.support.pygments.lexers.dotnet.CSharpAspxLexer.filenames = ['*.aspx', '*.asax', '*.ascx', '*.ashx', '*.asmx', '*.axd'] [static]

Definition at line 323 of file dotnet.py.

Definition at line 324 of file dotnet.py.

Definition at line 321 of file dotnet.py.


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