Re: [Boost-docs] [quickbook] Code block level element

Subject: Re: [Boost-docs] [quickbook] Code block level element
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-09-16 16:25:25


On 9/16/2010 12:10 PM, Steven Watanabe wrote:
> 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.

Now I understand. The doc should say that. Thanks !

>
> #include <iostream>
>
> int main()
> {
> // Sample code
> std::cout << "Hello, World\n";
> return 0;
> }


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC