On 07/08/10 09:45, sylr wrote:
Hi,
I would like to know if its possible to make attribute substitution in
source blocks, e.g.
[source,shell]
-----------------------------
sylv...@kheops:~/$ git clone {mike_git_url} mike.git
-----------------------------
sylv...@kheops:~/$ asciidoc -a mike_git_url="git://..../mike.git"
mike.txt
The subs attribute can be applied to paragraph and block elements e.g.
["source","shell",subs="attributes"]
-----------------------------
sylv...@kheops:~/$ git clone {mike_git_url} mike.git
-----------------------------
Note that all attributes in the list have to be quoted if named attributes are
used.
Here's an example for a literal paragraph from
http://www.methods.co.nz/asciidoc/INSTALL.html
[subs="attributes"]
$ cd ~/bin
$ hg clone -r {revnumber} https://asciidoc.googlecode.com/hg/
asciidoc-{revnumber}
See 'Block Element Definitions' in the User Guide
http://www.methods.co.nz/asciidoc/userguide.html#X73
Cheers, Stuart
Regards.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" 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/asciidoc?hl=en.