On 15 October 2014 09:55, Yakov Fain <[email protected]> wrote:
> Hello,
>
> I'm writing a book using asciidoc and need to be able to make in *bold* a
> code fragment that's located inside the [source] block.  For example, I have
> a code listing A, then added something (e.g. id="password") and want to show
> this addition in bold.
>
> I wonder if anyone knows how to do it?

Hi Yakov,

[source] blocks are rendered by external entities, for example
source-highlight or pygments for asciidoc html or the docbook
toolchain for PDF.

Having any manual markup in the code is dependent on those, and as far
as I know none allow any form of markup since the usual markup syntax
is legal code in some languages and so the renderer can't tell code
from markup.

You would be better off to use some other block type, but you will
have to manually markup any of the source you want highlighted.

Cheers
Lex

>
> Thanks
> Yakov Fain
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to