pygments.lexers.dotnet

Lexers for .net languages.

copyright:Copyright 2006-2013 by the Pygments team, see AUTHORS.
license:BSD, see LICENSE for details.
class pygments.lexers.dotnet.CSharpLexer(**options)[source]

For C# source code.

Additional options accepted:

unicodelevel

Determines which Unicode characters this lexer allows for identifiers. The possible values are:

  • none – only the ASCII letters and numbers are allowed. This is the fastest selection.
  • basic – all Unicode characters from the specification except category Lo are allowed.
  • full – all Unicode characters as specified in the C# specs are allowed. Note that this means a considerable slowdown since the Lo category has more than 40,000 characters in it!

The default value is basic.

New in Pygments 0.8.

class pygments.lexers.dotnet.NemerleLexer(**options)[source]

For Nemerle source code.

Additional options accepted:

unicodelevel

Determines which Unicode characters this lexer allows for identifiers. The possible values are:

  • none – only the ASCII letters and numbers are allowed. This is the fastest selection.
  • basic – all Unicode characters from the specification except category Lo are allowed.
  • full – all Unicode characters as specified in the C# specs are allowed. Note that this means a considerable slowdown since the Lo category has more than 40,000 characters in it!

The default value is basic.

New in Pygments 1.5.

class pygments.lexers.dotnet.BooLexer(**options)[source]

For Boo source code.

class pygments.lexers.dotnet.VbNetLexer(**options)[source]

For Visual Basic.NET source code.

class pygments.lexers.dotnet.CSharpAspxLexer(**options)[source]

Lexer for highligting C# within ASP.NET pages.

class pygments.lexers.dotnet.VbNetAspxLexer(**options)[source]

Lexer for highligting Visual Basic.net within ASP.NET pages.

class pygments.lexers.dotnet.FSharpLexer(**options)[source]

For the F# language.

New in Pygments 1.5.

Project Versions

This Page