Mercurial > babel > mirror
diff doc/display.txt @ 40:0739bc8e7210 trunk
Syntax highlighting for the docs.
author | cmlenz |
---|---|
date | Wed, 06 Jun 2007 11:02:48 +0000 |
parents | 1b9956f20649 |
children | 98dcabc99308 |
line wrap: on
line diff
--- a/doc/display.txt +++ b/doc/display.txt @@ -29,7 +29,9 @@ ==================== You normally access such locale data through the `Locale`_ class provided -by Babel:: +by Babel: + +.. code-block:: pycon >>> from babel import Locale >>> locale = Locale('en', 'US') @@ -60,7 +62,9 @@ These display names are of course used for date formatting, but can also be used, for example, to show a list of months to the user in their preferred -language:: +language: + +.. code-block:: pycon >>> locale = Locale('es') >>> month_names = locale.months['format']['wide'].items()