is below:
.. code:: html
+ :class: m-console-wrap
<link rel="stylesheet" href="m-dark.css" /> <!-- or m-dark.compiled.css -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?Source+Sans+Pro:400,400i,600,600i%7Cfamily=Source+Code+Pro:400,400i,600" />
(used for pre-formatted text and code).
.. code:: html
+ :class: m-console-wrap
<link rel="stylesheet" href="m-light.css" /> <!-- or m-light.compiled.css -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600" />
cd css
./postprocess.py m-dark.css # Creates a m-dark.compiled.css file
+`Modifying the Pygments higlighting style`_
+-------------------------------------------
+
If you want to modify the Pygments style, it's a bit more involved. You need to
edit the ``*.py`` file instead of the ``*.css``:
sudo cp pygments-console.py /usr/lib/python3.6/site-packages/pygments/styles/console.py
pygmentize -f html -S console -a .m-console > pygments-console.css
+Alternatively, you can use any of the builtin styles --- pick the one you like
+at http://pygments.org/demo/ and then tell ``pygmentize`` to generate a CSS for
+it. For example, for the ``pastie`` style. Note that you might want to remove
+the first two lines of the resulting CSS (setting :css:`background-color`) as
+those would in most cases conflict with the style in m.css.
+
+.. code:: sh
+
+ pygmentize -f html -S pastie -a .m-code > pygments-pastie.css
+
.. note-success::
Made a theme and want to share it with the world? I'm happy to
following configuration:
.. code:: ini
+ :class: m-console-wrap
HTML_EXTRA_STYLESHEET = \
https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600 \
``m-dark.compiled.css`` file from your main site:
.. code:: ini
+ :class: m-console-wrap
HTML_EXTRA_STYLESHEET = \
https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600 \
in place of ``m-light+documentation.compiled.css``:
.. code:: ini
+ :class: m-console-wrap
HTML_EXTRA_STYLESHEET = \
https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700,700i%7CSource+Code+Pro:400,400i,600 \