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

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


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 ?


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