Commenting

When you want to place a piece of code in the comment use tag [code] in square brackets, like this:

[code language="cpp"]
template <typename T>
void myCode ()
{
  std::vector<T> vec;
}
[/code]

This should render the following code:

template &lt;typename T&gt;
void myCode ()
{
  std::vector&lt;T&gt; vec;
}
There are 0 comments and replies

Comment on This Page