Sphinx directive to add unselectable prompt
Project description
Inititlise
In conf.py add extensions += ['sphinx-prompt'].
Syntax
.. prompt:: [<language> [<prompts> [<modifier>]]]
<statements>
Language
Supported language:
text (no pigments, default)
bash
python
scala
Prompt(s)
If modifier is auto, a coma separated list of prompts to find in the statements.
Else the prompt to add on each statements, for Python and Bash language the end \ is supported.
Default to empty, $ for bash language.
Examples
Build
python bootstrap.py --distribute -v 1.7.1
./buildout/bin/buildout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx-prompt-0.2.1.tar.gz
(2.8 kB
view hashes)