mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Improve highlighting of some code blocks. (GH-6401)
This commit is contained in:
parent
9265dd72e5
commit
46936d5a71
29 changed files with 301 additions and 137 deletions
|
|
@ -283,7 +283,9 @@ Windows, choose :menuselection:`Start --> Programs --> Python X.Y -->
|
|||
Python (command line)`. Once the interpreter is started, you type Python code
|
||||
at the prompt. For example, on my Linux system, I type the three Python
|
||||
statements shown below, and get the output as shown, to find out my
|
||||
:file:`{prefix}` and :file:`{exec-prefix}`::
|
||||
:file:`{prefix}` and :file:`{exec-prefix}`:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
Python 2.4 (#26, Aug 7 2004, 17:19:02)
|
||||
Type "help", "copyright", "credits" or "license" for more information.
|
||||
|
|
@ -622,7 +624,9 @@ parsing your configuration file(s).
|
|||
|
||||
Obviously, specifying the entire installation scheme every time you install a
|
||||
new module distribution would be very tedious. Thus, you can put these options
|
||||
into your Distutils config file (see section :ref:`inst-config-files`)::
|
||||
into your Distutils config file (see section :ref:`inst-config-files`):
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[install]
|
||||
install-base=$HOME
|
||||
|
|
@ -631,7 +635,9 @@ into your Distutils config file (see section :ref:`inst-config-files`)::
|
|||
install-scripts=python/scripts
|
||||
install-data=python/data
|
||||
|
||||
or, equivalently, ::
|
||||
or, equivalently,
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[install]
|
||||
install-base=$HOME/python
|
||||
|
|
@ -718,7 +724,9 @@ A slightly less convenient way is to edit the :file:`site.py` file in Python's
|
|||
standard library, and modify ``sys.path``. :file:`site.py` is automatically
|
||||
imported when the Python interpreter is executed, unless the :option:`-S` switch
|
||||
is supplied to suppress this behaviour. So you could simply edit
|
||||
:file:`site.py` and add two lines to it::
|
||||
:file:`site.py` and add two lines to it:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
import sys
|
||||
sys.path.append('/www/python/')
|
||||
|
|
@ -839,7 +847,9 @@ plus a ``global`` section for global options that affect every command. Each
|
|||
section consists of one option per line, specified as ``option=value``.
|
||||
|
||||
For example, the following is a complete config file that just forces all
|
||||
commands to run quietly by default::
|
||||
commands to run quietly by default:
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[global]
|
||||
verbose=0
|
||||
|
|
@ -853,7 +863,9 @@ distribution.
|
|||
|
||||
You could override the default "build base" directory and make the
|
||||
:command:`build\*` commands always forcibly rebuild all files with the
|
||||
following::
|
||||
following:
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[build]
|
||||
build-base=blib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue