On 29 September 2014 06:19, Julius Plenz <[email protected]> wrote: > Hi, > > I’m trying to selectively typeset some parts of a verbatim block in
Hi, A verbatim block is meant to be verbatim, but you want to make it verbatim only some of the time, a "partly-verbatim" block :) In reality you want to use several blocks, since you want parts verbatim (the output) and parts marked up (the input). You can use roles to select styling to make them look like one block. Cheers Lex > bold, e.g. I have a block that emulates the user typing something into > a shell and getting a response, where the user input should be bold: > > $ <bold>user input here</bold> > Some output > $ <bold>another command</bold> > More output > > How can I achieve this? I tried the following: > > [subs="verbatim,macros"] > -------- > $ pass:quotes[*user input*] > user output containing *asterisks* not producing bold font > also, `this` should not be teletype-in-teletype font > -------- > > This works pretty well, except that in the last line, a macro like > `this` gets expanded, too. Also, other macros get expanded. > > Is there a way that only the pass:[] macro is being evaluated? > Or is there an altogether different way to achieve the desired result? > > Any hints appreciated! Thanks, > > Julius > > -- > 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.
