Add syntax highlighting to Readme

This commit is contained in:
Bas Broek 2017-03-29 13:36:51 +02:00 committed by GitHub
parent 034ca20d3c
commit dc37f7fd00

View File

@ -62,7 +62,7 @@ Development Setup
To get started hacking on mitmproxy, please follow the `advanced installation`_ steps to install mitmproxy from source, but stop right before running ``pip3 install mitmproxy``. Instead, do the following: To get started hacking on mitmproxy, please follow the `advanced installation`_ steps to install mitmproxy from source, but stop right before running ``pip3 install mitmproxy``. Instead, do the following:
.. code-block:: text .. code-block:: bash
git clone https://github.com/mitmproxy/mitmproxy.git git clone https://github.com/mitmproxy/mitmproxy.git
cd mitmproxy cd mitmproxy
@ -80,7 +80,7 @@ The main executables for the project - ``mitmdump``, ``mitmproxy``,
virtualenv. After activating the virtualenv, they will be on your $PATH, and virtualenv. After activating the virtualenv, they will be on your $PATH, and
you can run them like any other command: you can run them like any other command:
.. code-block:: text .. code-block:: bash
. venv/bin/activate # "venv\Scripts\activate" on Windows . venv/bin/activate # "venv\Scripts\activate" on Windows
mitmdump --version mitmdump --version
@ -91,13 +91,13 @@ Testing
If you've followed the procedure above, you already have all the development If you've followed the procedure above, you already have all the development
requirements installed, and you can run the full test suite (including tests for code style and documentation) with tox_: requirements installed, and you can run the full test suite (including tests for code style and documentation) with tox_:
.. code-block:: text .. code-block:: bash
tox tox
For speedier testing, we recommend you run `pytest`_ directly on individual test files or folders: For speedier testing, we recommend you run `pytest`_ directly on individual test files or folders:
.. code-block:: text .. code-block:: bash
cd test/mitmproxy/addons cd test/mitmproxy/addons
pytest --cov mitmproxy.addons.anticache --looponfail test_anticache.py pytest --cov mitmproxy.addons.anticache --looponfail test_anticache.py
@ -114,7 +114,7 @@ The mitmproxy documentation is build using Sphinx_, which is installed
automatically if you set up a development environment as described above. After automatically if you set up a development environment as described above. After
installation, you can render the documentation like this: installation, you can render the documentation like this:
.. code-block:: text .. code-block:: bash
cd docs cd docs
make clean make clean
@ -136,7 +136,7 @@ This is automatically enforced on every PR. If we detect a linting error, the
PR checks will fail and block merging. You can run our lint checks yourself PR checks will fail and block merging. You can run our lint checks yourself
with the following command: with the following command:
.. code-block:: text .. code-block:: bash
tox -e lint tox -e lint