Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Igor/10Tec  
#1 Posted : Thursday, December 13, 2012 1:19:36 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
If we use one code block in a post, it works fine:

Code:
while (true)
{
  boolVar = true;
}

Edited by user Friday, December 14, 2012 8:48:28 AM(UTC)  | Reason: Not specified

Igor/10Tec  
#2 Posted : Thursday, December 13, 2012 1:21:12 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
Two code blocks make a post unreadable.

Code block #1:

Code:
while (true)
{
  boolVar = true;
}



Code block #2:

Code:
while (true)
{
  boolVar = true;
}
Igor/10Tec  
#3 Posted : Thursday, December 13, 2012 1:21:50 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
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%

Edited by user Thursday, December 13, 2012 1:25:14 PM(UTC)  | Reason: Not specified

Igor/10Tec  
#4 Posted : Friday, December 14, 2012 8:40:45 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
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:

Code:
while (true)
{
  boolVar = true;
}


Code:
while (true)
{
  boolVar = true;
}


Click the Edit button to see the raw post source.

Edited by user Friday, December 14, 2012 8:43:05 AM(UTC)  | Reason: Not specified

Users browsing this topic
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.