Il 13/06/2012 09:23, Guenter Milde ha scritto:
.. code:: sh
:class: root
cd<the unpacked archive' root>
python3 setup.py install
python setup.py install
(The last setup command should use the default Python version, as
distutils puts the command it was called with in the shebang line of the
executables.)
The latter code block translates here to::
<p>and if no critical errors turn up:</p>
<pre class="code sh root literal-block">
<span class="nb">cd</span> <the unpacked archive<span class="err">'</span>
root>
python3 setup.py install
python setup.py install
</pre>
which should match a CSS rule like::
pre.sh.root {background: red;}
mmh, for me it works this way:
.sh.root pre {background: red;}
However, prefixing some command line prompt via CSS does not work, as the
lines are not wrapped in a tag.
I see: I think I'll end up using a general style for shell prompt and
use 'sudo' to show the commands which need root privileges.
Thinking twice, it's better, because quite often a single code block
might include root and normal user commands.
So I guess my CSS style will be something like this:
.code.sh pre {
background-color: #000;
color: #EDEDED;
font-family: Courier;
}
Thanks all for your help!
Federico
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.