On 19/06/12 19:25, Wilhelm Meier wrote:
Am 19.06.2012 05:57, schrieb Lex Trotman:
On 19 June 2012 13:47, Wilhelm Meier<[email protected]> wrote:
Hi all,
I would like to have the possibility to distinguish different types of
listings blocks, say one style for shell-language rsp. shell-commands typed
in and another style for C++ source-code examples. A simple example would be
to give the shell-language a light-red background and the C++ source a
lightgrey background.
So, the question is: is the a possibility to give additional attributes to a
listing-block that are passed (uninterpreted) to the backend, so the e.g.
xslt-processor can use them?
Hi,
Thats what the role attribute is for, is made into a role=attribute on
docbook or class= on xhtml
Well, I can't get it working ... no role attribute showed up in the xml file.
What's wrong?
If the list contains any named or quoted attributes then all string attribute
values must be quoted. See http://www.methods.co.nz/asciidoc/userguide.html#X21
Should be: ["source","java","unnumbered",role="xyz"]
Cheers, Stuart
[source,java,unnumbered,role=xyz]
----
{
Anweisung-1
}
----
[source,java,unnumbered,4,role=xyz]
----
{
Anweisung-1
}
----
Cheers
Lex
--
Wilhelm
--
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.
--
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.