Subject: Re: [Boost-docs] [quickbook] Code block level element
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-16 16:10:20
AMDG
Edward Diener wrote:
> I am trying to learn quickbook, so here is my first question. For the
> 'Code' block level element is says:
>
> 'Preformatted code starts with a space or a tab.'
>
> Does this mean that 'Code' must actually start with a space or a tab ?
> The examples in the documentation do not show it that way. So that:
>
> #include <iostream>
>
> int main()
> {
> // Sample code
> std::cout << "Hello, World\n";
> return 0;
> }
>
> is a 'Code' block level element and:
>
> #include <iostream>
>
> int main()
> {
> // Sample code
> std::cout << "Hello, World\n";
> return 0;
> }
>
> is not a 'Code' block level element ?
>
> Also how does one specify the end of the 'Code' block level element ?
The whole block should be indented.
#include <iostream>
int main()
{
// Sample code
std::cout << "Hello, World\n";
return 0;
}
In Christ,
Steven Watanabe
This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC