Hi Evan

You can enable quotes substitution, for example:

[subs="quotes"]
--------------------------------------
#include <stdio.h>

*int main() {*  // This is bold.
   printf("Hello World!\n");
   exit(0);
}
--------------------------------------

Because all quotes are enable you might end up with undesired formatting, see http://www.methods.co.nz/asciidoc/faq.html#_how_can_i_selectively_disable_a_quoted_text_substitution


Cheers, Stuart

On 02/11/11 05:12, Evan Driscoll wrote:
I'd like to format some code that I'd otherwise put in a listing
block. (In particular, I want to bold a particular line.)

What's the best way to go about this? If I put it into a listing
block, I can't make the lines bold. If I just use monospaced, then I
have to add +s at the end of each line to get line breaks, and it
doesn't indent. I'd use a [verse] paragraph and monospace it, except
that I lied and this is going inside of a table, and [verse] doesn't
seem to work there.

Any ideas? Is it just put a bunch of +s and explicit indents? (I'm not
actually quite sure how to do those actually.)

Evan


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