Skip to content

Commit 6978c5a

Browse files
committed
correct code-block highlighting and link formatting
1 parent 38d0e63 commit 6978c5a

File tree

3 files changed

+38
-16
lines changed

3 files changed

+38
-16
lines changed

docs/starting/install/linux.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ command. It also enables you to add this network installation capability to
2222
your own Python software with very little work.
2323

2424
To obtain the latest version of Distribute for Linux, run the python script
25-
available here:
26-
http://python-distribute.org/distribute_setup.py
25+
available here: `python-distribute <http://python-distribute.org/distribute_setup.py>`_
2726

2827
The new``easy_install`` command you have available is considered by many to be
2928
deprecated, so we will install its replacement: **pip**. Pip allows for
3029
uninstallation of packages, and is actively maintained, unlike easy_install.
3130

32-
To install pip, simply open a command prompt and run::
31+
To install pip, simply open a command prompt and run
32+
33+
.. code-block:: console
3334
3435
$ easy_install pip
3536
@@ -38,7 +39,9 @@ Virtualenv
3839
----------
3940

4041
After Distribute & Pip, the next development tool that you should install is
41-
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip::
42+
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
43+
44+
.. code-block:: console
4245
4346
$ pip install virtualenv
4447
@@ -51,7 +54,9 @@ framework and application will have many dependencies.
5154

5255
To set up a new Python environment, change the working directory to where ever
5356
you want to store the environment, and run the virtualenv utility in your
54-
project's directory::
57+
project's directory
58+
59+
.. code-block:: console
5560
5661
$ virtualenv --distribute venv
5762

docs/starting/install/osx.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ Linux systems will notice one key component missing: a decent package manager.
2929
`Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void.
3030

3131
To `install Homebrew <https://github.com/mxcl/homebrew/wiki/installation>`_,
32-
simply run::
32+
simply run
33+
34+
.. code-block:: console
3335
3436
$ ruby -e "$(curl -fsS https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
3537
3638
Then, insert the hombrew directory at the top of your ``PATH`` enviornment
3739
variable. You can do this by adding the following line at the bottom of your
38-
``~/.bashrc`` file::
40+
``~/.bashrc`` file
41+
42+
.. code-block:: console
3943
4044
export PATH=/usr/local/bin:$PATH
4145
@@ -44,7 +48,9 @@ Now, we can install Python 2.7: ::
4448
$ brew install python --framework
4549

4650
This will take a minute or two. Once that's complete, you'll have to add the
47-
new Python scripts directory to your ``PATH``::
51+
new Python scripts directory to your ``PATH``
52+
53+
.. code-block:: console
4854
4955
export PATH=/usr/local/share/python:$PATH
5056
@@ -69,7 +75,9 @@ considered by many to be deprecated, so we will install its replacement:
6975
**pip**. Pip allows for uninstallation of packages, and is actively maintained,
7076
unlike easy_install.
7177

72-
To install pip, simply open a command prompt and run::
78+
To install pip, simply open a command prompt and run
79+
80+
.. code-block:: console
7381
7482
$ easy_install pip
7583
@@ -78,7 +86,9 @@ Virtualenv
7886
----------
7987

8088
After Distribute & Pip, the next development tool that you should install is
81-
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip::
89+
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
90+
91+
.. code-block:: console
8292
8393
$ pip install virtualenv
8494
@@ -91,7 +101,9 @@ framework and application will have many dependencies.
91101

92102
To set up a new Python environment, change the working directory to where ever
93103
you want to store the environment, and run the virtualenv utility in your
94-
project's directory::
104+
project's directory
105+
106+
.. code-block:: console
95107
96108
$ virtualenv --distribute venv
97109

docs/starting/install/win.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@ command. It also enables you to add this network installation capability to
4545
your own Python software with very little work.
4646

4747
To obtain the latest version of Distribute for Windows, run the python script
48-
available here:
49-
http://python-distribute.org/distribute_setup.py
48+
available here: `python-distribute <http://python-distribute.org/distribute_setup.py>`_
5049

5150

5251
You'll now have a new command available to you: **easy_install**. It is
5352
considered by many to be deprecated, so we will install its replacement:
5453
**pip**. Pip allows for uninstallation of packages, and is actively maintained,
5554
unlike easy_install.
5655

57-
To install pip, simply open a command prompt and run::
56+
To install pip, simply open a command prompt and run
57+
58+
.. code-block:: console
5859
5960
> easy_install pip
6061
@@ -63,7 +64,9 @@ Virtualenv
6364
----------
6465

6566
After Distribute & Pip, the next development tool that you should install is
66-
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip::
67+
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
68+
69+
.. code-block:: console
6770
6871
> pip install virtualenv
6972
@@ -77,7 +80,9 @@ framework and application will have many dependencies.
7780

7881
To set up a new Python environment, change the working directory to where ever
7982
you want to store the environment, and run the virtualenv utility in your
80-
project's directory::
83+
project's directory
84+
85+
.. code-block:: console
8186
8287
> virtualenv --distribute venv
8388

0 commit comments

Comments
 (0)