Hello everybody,

is there some way to emphasize/italicize pieces of text in a literal listing?
I'd like to mark the text that has to be replaced by the reader in some way.


Ex:

  foo bar baz, change __name__ below:
  +
  -----------
  # echo "this is a shell command, hello <name>"
  -----------

and "name" should be italized (in the running text and the literal block).


I already tried using an additional asciidoc.conf, with things like

  [blockdef-listing]
  subs=replacements3,verbatim

  [verbatim]
  ^?^?=#emphasis
  \x7f\x7f=#emphasis

  [replacements3]
  \<(\w+)\>=__\1__
  __=#emphasis

  [replacements2]
  ^?^?=#emphasis
  §=#unquoted#emphasis#quoted

  [specialcharacters]
  ^?=#emphasis

and some more (unsuccessful) tries, using UTF8 (eg. «») and ASCII (<Backspace>)
characters for markup.

I'd be happy to use some UTF8 character(s) that don't occur in my literal 
blocks.


Is there some way to achieve that, or do I have to write my own
source-highlighter for that?


Thank you very much for any help!


Regards,

Phil


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