Hi,
the easiest way to enter shell commands is probably not using any $ and
# sign in front of the command and using sudo for commands to be run as
root.
But it would be nice to handle it differently.
I'd like to be able to define two styles for shell commands.
I don't want to use "sudo" in the root commands.
I'd like to enter only the real command in the literal block, with no
leading $ or # (because it's not handy for copy&paste).
$ and # signs should be added by a style, that I may specify as a option
of the literal block.
Something like this:
Install the dependencies::
:user: root
aptitude install bla bla bla
Run the program::
:user: user
python program.py
What do you recommend to do?
Also, how can I style the shell commands differently from other literal
blocks?
Thanks,
Federico
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.