Igor/10Tec
2012-12-13T13:19:36Z
If we use one code block in a post, it works fine:

while (true)
{
  boolVar = true;
}
Igor/10Tec
2012-12-13T13:21:12Z
Two code blocks make a post unreadable.

Code block #1:

while (true)
{
  boolVar = true;
}


Code block #2:

while (true)
{
  boolVar = true;
}
Igor/10Tec
2012-12-13T13:21:50Z
The "raw" text of the previous post is the following (using the percent sign instead of square brackets):

Quote:

Code block #1:

%code=csharp%while (true)
{
boolVar = true;
}%/code%


Code block #2:

%code=csharp%while (true)
{
boolVar = true;
}%/code%

Igor/10Tec
2012-12-14T08:40:45Z
The developers of the forum engine we are using (YAF, YetAnotherForum.net ) say that it is a known issue which will be fixed in the future. To make it work now, we need to add ";-1" to the code tag like this:

code=csharp;-1

Here are two code blocks in one post written with this hotfix:

while (true)
{
  boolVar = true;
}

while (true)
{
  boolVar = true;
}

Click the Edit button to see the raw post source.