Commits

Anonymous committed d73d88b

[svn] Some doc updates.

Comments (0)

Files changed (4)

     
     `ValueError` is raised if no lexer thinks it can handle the content.
 
+def `get_all_lexers():`
+    Return an iterable over all registered lexers, yielding tuples in the
+    format::
+
+    	(longname, tuple of aliases, tuple of filename patterns, tuple of mimetypes)
+
+    *New in Pygments 0.6.*
+
+
 Functions from `pygments.formatters`:
 
 def `get_formatter_by_name(alias, **options):`
     Will raise `ValueError` if no formatter for that filename is found.
 
 
+Functions from `pygments.styles`:
+
+def `get_style_by_name(name):`
+    Return a style class by its short name. The names of the builtin styles
+    are listed in `pygments.styles.STYLE_MAP`.
+
+    Will raise `ValueError` if no style of that name is found.
+
+def `get_all_styles():`
+    Return an iterable over all registered styles, yielding their names.
+
+    *New in Pygments 0.6.*
+
+
 Lexers
 ======
 

docs/src/formatters.txt

         td .code .cm { color: #999999 }
         ...
 
-    If you have pygments > 0.5.1 you can also pass a list of tuple to the
+    If you have pygments 0.6 or higher you can also pass a list of tuple to the
     `get_style_defs` method to request multiple prefixes for the tokens:
 
     .. sourcecode:: python
 `RtfFormatter`
 --------------
 
-    Formats tokens as RTF markup. This formatter automatically outputs full rst
+    Formats tokens as RTF markup. This formatter automatically outputs full RTF
     documents with color information and other useful stuff. Perfect for Copy and
     Paste into Microsoft® Word® documents.
     
-    *available in Pygments > 0.5.1*
+    *New in Pygments 0.6.*
 
     Additional options accepted by the `RtfFormatter`:
 
     `fontface`
-        The used font famliy. For example ``Bitstream Vera Sans``. Defaults to
-        some generic font which is supposted to be fixed width.
+        The used font famliy, for example ``Bitstream Vera Sans``. Defaults to
+        some generic font which is supposed to have fixed width.
 
     :Aliases: ``rtf``
     :Filename pattern: ``*.rtf``
 
+
 `BBCodeFormatter`
 -----------------
     

docs/src/lexers.txt

 
     For Scheme source code. It supports the whole R5RS specification.
 
+    *New in Pygments 0.6.*
+
     :Aliases: ``scheme``
     :Filename patterns: ``*.scm``
 
     Generic `myghty templates`_ lexer. Code that isn't Myghty
     markup is yielded as `Token.Other`.
 
+    *New in Pygments 0.6.*
+
     .. _myghty templates: http://www.myghty.org/
 
     :Aliases:   ``myghty``
     Subclass of the `MyghtyLexer` that highlights unlexer data
     with the `HtmlLexer`.
 
+    *New in Pygments 0.6.*
+
     :Aliases:   ``html+myghty``
     :Filename patterns: None
 
     Subclass of the `MyghtyLexer` that highlights unlexer data
     with the `XmlLexer`.
 
+    *New in Pygments 0.6.*
+
     :Aliases:   ``xml+myghty``
     :Filename patterns: None
 
     Subclass of the `MyghtyLexer` that highlights unlexer data
     with the `JavascriptLexer`.
 
+    *New in Pygments 0.6.*
+
     :Aliases:   ``js+myghty``, ``javascript+myghty``
     :Filename patterns: None
 
     Subclass of the `MyghtyLexer` that highlights unlexer data
     with the `CssLexer`.
 
+    *New in Pygments 0.6.*
+
     :Aliases:   ``css+myghty``
     :Filename patterns: None
 
 
     Lexer for (ba)sh shell scripts.
 
+    *New in Pygments 0.6.*
+
     :Aliases: ``bash``, ``sh``
     :Filename patterns: ``*.sh``
     :Mimetypes: ``application/x-sh``, ``application/x-shellscript`` 
     Lexer for the (g)roff typesetting language, supporting groff
     extensions. Mainly useful for highlighting manpage sources.
 
+    *New in Pygments 0.6.*
+
     :Aliases: ``groff``, ``nroff``, ``man``
     :Filename patterns: ``*.[1234567]``, ``*.man``
 
     Lexer for configuration files following the Apache config file
     format.
 
+    *New in Pygments 0.6.*
+
     :Aliases: ``apacheconf``, ``aconf``
     :Filename patterns: ``.htaccess``, ``apache.conf``
 
 Iterating over all lexers
 =========================
 
-*requires Pygments > 0.5.1*
+*New in Pygments 0.6.*
 
 To get all lexers (both the builtin and the plugin ones), you can
 use the `get_all_lexers()` function from the `pygments.lexers`

docs/src/styles.txt

 Getting a list of available styles
 ==================================
 
-*requires Pygments > 0.5.1*
+*New in Pygments 0.6.*
 
 Because it could be that a plugin registered a style there, is
 a way to iterate over all styles: