8000 Fix syntax highlighting of sample bash and bibtex in rst markup. · matplotlib/matplotlib@159f1dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 159f1dd

Browse files
committed
Fix syntax highlighting of sample bash and bibtex in rst markup.
1 parent 482bde0 commit 159f1dd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

doc/citing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If Matplotlib contributes to a project that leads to a scientific
77
publication, please acknowledge this fact by citing `Hunter et al (2007)
88
<http://doi.org/10.1109/MCSE.2007.55>`_ using this ready-made BibTeX entry:
99

10-
.. code:: bibtex
10+
.. code-block:: bibtex
1111
1212
@Article{Hunter:2007,
1313
Author = {Hunter, J. D.},

doc/faq/osx_framework.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Working with Matplotlib on OSX
77
.. contents::
88
:backlinks: none
99

10+
.. highlight:: bash
1011

1112
.. _osxframework_introduction:
1213

@@ -77,9 +78,7 @@ Until this is fixed, one of the following workarounds can be used:
7778

7879
The best known work around is to use the non
7980
virtualenv python along with the PYTHONHOME environment variable.
80-
This can be done by defining a function in your ``.bashrc`` using
81-
82-
.. code:: bash
81+
This can be done by defining a function in your ``.bashrc`` using ::
8382

8483
function frameworkpython {
8584
if [[ ! -z "$VIRTUAL_ENV" ]]; then
@@ -115,9 +114,7 @@ An alternative work around borrowed from the `WX wiki
115114
virtualenv python along with the PYTHONHOME environment variable. This can be
116115
implemented in a script as below. To use this modify ``PYVER`` and
117116
``PATHTOPYTHON`` and put the script in the virtualenv bin directory i.e.
118-
``PATHTOVENV/bin/frameworkpython``
119-
120-
.. code:: bash
117+
``PATHTOVENV/bin/frameworkpython`` ::
121118

122119
#!/bin/bash
123120

0 commit comments

Comments
 (0)
0