[...]

>> Mmh, so if I want to apply e.g. a different background color to a special
>> code-block I have to give source-highlight a different ccs-file via the
>> args-filter-argument in asciidoc?
>
> I see from below what you are actually trying to do, better to ask directly :)
>
> To distinguish different types of listings you can wrap the listings
> that you want to have special handling in an open block with a role
> attribute, that wraps the whole thing in a <div
> class=openblock{role}>.
>

Or use Stuarts new addition, this thread moves too fast for me :)

>>
>> The other point is, that your patch works, but behaves different in titled
>> and untitled listing-blocks: for titled listing-blocks the role-attribute is
>> applied to the <formalpara> enclosing the title as well. I got the xslt
>> working with the role for the verbatim-block but I have no idea how to refer
>> to the role of the enclosing structure.
>>
>
> I just noted that this is the same as the rest of the docbook output
> including non-source highlighted listings and literalblocks.
>
>> This is what I use for the
>>
>>  <xsl:attribute-set name="shade.verbatim.style">
>>    <xsl:attribute name="background-color">
>>      <xsl:choose>
>>        <xsl:when test="@role='code'">#F5F5FF</xsl:when>
>>        <xsl:when test="@role='command'">#F5FFF5</xsl:when>
>>        <xsl:otherwise>lightgrey</xsl:otherwise>
>>      </xsl:choose>
>>    </xsl:attribute>
>>
>
> Sorry, don't know xsl enough.

But I'm sure you can ask for something like a literallayout with
role=... or a literallayout with a parent that is a formalpara that
has role=...

Cheers
Lex

-- 
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.

Reply via email to