Igor/10Tec
  • Posts: 1130
  • Joined: 1/17/2011
If we use one code block in a post, it works fine:

while (true)
{
  boolVar = true;
}
Igor/10Tec
  • Posts: 1130
  • Joined: 1/17/2011
Two code blocks make a post unreadable.

Code block #1:

while (true)
{
  boolVar = true;
}



Code block #2:

while (true)
{
  boolVar = true;
}
Igor/10Tec
  • Posts: 1130
  • Joined: 1/17/2011
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
  • Posts: 1130
  • Joined: 1/17/2011
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.
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.