text-wrapping; source code highlighting

This commit is contained in:
Dan Crosta
2011-12-30 19:53:47 -05:00
parent b9d9a1a22a
commit f48d84826c
+13 -1
View File
@@ -61,10 +61,18 @@ Sub section headings::
Very Deep
~~~~~~~~~
Prose
-----
Wrap text lines at 78 characters. Where necessary, lines may exceed 78
characters, especially if wrapping would make the source text more difficult
to read.
Code Examples
-------------
Wrap all code examples within 70 characters to avoid horizontal scrollbars.
Wrap all code examples at 70 characters to avoid horizontal scrollbars.
Command line examples::
@@ -79,12 +87,16 @@ Python interpreter examples::
Label the example::
.. code-block:: python
>>> import this
Python examples::
Descriptive title::
.. code-block:: python
def get_answer():
return 42