I'm using Pygments with Sphinx to write a manual for an introductory
Linux course, which includes Bash sessions. I'd like to be able to
highlight user input (e.g., using boldface type) to distinguish it
from program output, along the lines of
# ›passwd joe‹
Changing password for joe
Old password: ›foo123‹
New password: ›bar456‹
New password (again): ›bar456‹
Recognising the bits to be highlighted doesn't need to be automatic (I
don't mind putting in the single guillemets, which don't seem to be
used for anything else important) but there must be a way of
highlighting stuff that does not come immediately after a shell
prompt, i.e., the BashSessionLexer doesn't quite do what I want. Extra
credit if there is a way to highlight the passwords differently, e.g.,
in grey vs. black.
Thank you for any suggestions!
Anselm
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en.