Highlighting within XML code block

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Highlighting within XML code block

yantarou
Hi all,

I want to highlight (bold, italic) some parts of XML code blocks.

I'm still very new to AsciiDoc, so I may be using the wrong approach to do so, but what I did is using a [literal,subs="verbatim,quotes"] block as described in GitHub Issue 91. In general that works.

Problems arise if the the to be highlighted part is immediately following a ">" or ":". Please see the attached PDF (custom_sustitutions.pdf) for the AsciiDoc source I am using and it's outputs.

Thanks in advance for you help.
Reply | Threaded
Open this post in threaded view
|

Re: Highlighting within XML code block

mojavelinux
Administrator
You'll likely need to use the double asterisk (bold) or double underscore (italic) form. Does that work for you?

-Dan

On Sun, Oct 26, 2014 at 7:57 PM, yantarou [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

I want to highlight (bold, italic) some parts of XML code blocks.

I'm still very new to AsciiDoc, so I may be using the wrong approach to do so, but what I did is using a [literal,subs="verbatim,quotes"] block as described in GitHub Issue 91. In general that works.

Problems arise if the the to be highlighted part is immediately following a ">" or ":". Please see the attached PDF (custom_sustitutions.pdf) for the AsciiDoc source I am using and it's outputs.

Thanks in advance for you help.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Highlighting-within-XML-code-block-tp2375.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Highlighting within XML code block

yantarou
That works. Thank you, Dan!