Skip to content

Commit f48d848

Browse files
committed
text-wrapping; source code highlighting
1 parent b9d9a1a commit f48d848

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/notes/styleguide.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,18 @@ Sub section headings::
6161
Very Deep
6262
~~~~~~~~~
6363

64+
Prose
65+
-----
66+
67+
Wrap text lines at 78 characters. Where necessary, lines may exceed 78
68+
characters, especially if wrapping would make the source text more difficult
69+
to read.
70+
71+
6472
Code Examples
6573
-------------
6674

67-
Wrap all code examples within 70 characters to avoid horizontal scrollbars.
75+
Wrap all code examples at 70 characters to avoid horizontal scrollbars.
6876

6977
Command line examples::
7078

@@ -79,12 +87,16 @@ Python interpreter examples::
7987

8088
Label the example::
8189

90+
.. code-block:: python
91+
8292
>>> import this
8393

8494
Python examples::
8595

8696
Descriptive title::
8797

98+
.. code-block:: python
99+
88100
def get_answer():
89101
return 42
90102

0 commit comments

Comments
 (0)