Lexers for web-related languages and markup.
copyright: | Copyright 2006-2013 by the Pygments team, see AUTHORS. |
---|---|
license: | BSD, see LICENSE for details. |
For HTML 4 and XHTML 1 markup. Nested JavaScript and CSS is highlighted by the appropriate lexer.
Generic lexer for XML (eXtensible Markup Language).
For JSON data structures.
New in Pygments 1.5.
For PHP source code. For PHP embedded in HTML, use the HtmlPhpLexer.
Additional options accepted:
If given, must be a list of module names whose function names should not be highlighted. By default all modules are highlighted except the special 'unknown' module that includes functions that are known to php but are undocumented.
To get a list of allowed modules have a look into the _phpbuiltins module:
>>> from pygments.lexers._phpbuiltins import MODULES
>>> MODULES.keys()
['PHP Options/Info', 'Zip', 'dba', ...]
In fact the names of those modules match the module names from the php documentation.
For ActionScript source code.
New in Pygments 0.9.
For ActionScript 3 source code.
New in Pygments 0.11.
For MXML markup. Nested AS3 in <script> tags is highlighted by the appropriate lexer.
New in Pygments 1.1.
For haXe source code (http://haxe.org/).
New in Pygments 1.3.
For Objective-J source code with preprocessor directives.
New in Pygments 1.3.
For CoffeeScript source code.
New in Pygments 1.3.
For LiveScript source code.
New in Pygments 1.6.
Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks. See http://duelengine.org/. See http://jsonml.org/jbst/.
New in Pygments 1.4.
For Scaml markup. Scaml is Haml for Scala.
New in Pygments 1.4.
For Jade markup. Jade is a variant of Scaml, see: http://scalate.fusesource.org/documentation/scaml-reference.html
New in Pygments 1.4.
An XQuery lexer, parsing a stream and outputting the tokens needed to highlight xquery code.
New in Pygments 1.4.
A lexer for DTDs (Document Type Definitions).
New in Pygments 1.5.
For Lasso source code, covering both Lasso 9 syntax and LassoScript for Lasso 8.6 and earlier. For Lasso embedded in HTML, use the LassoHtmlLexer.
Additional options accepted:
New in Pygments 1.6.
For QML files. See http://doc.qt.digia.com/4.7/qdeclarativeintroduction.html.
New in Pygments 1.6.
For TypeScript source code.
New in Pygments 1.6.