On Mon, Jul 26, 2010 at 9:50 AM, Mike Pumphrey <[email protected]> wrote:
> Hi there. Is there a way to use substitution in a code block? For example:
>
> """
>
> #. Type in the following command::
>
> ./home/user/somecommand-|version|
>
> """
>
> The |version| command only appears to work when it's not inside a code
> block, as far as I can tell. What would be the best way to do this?
I think [1] you should be able to use the ``parsed-literal`` directive
for this::
Type in the following command:
.. parsed-literal::
./home/user/somecommand-|version|
Jacob
[1] At least, it works in plain reST; I assume it works in Sphinx.
--
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.