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 : Monday, April 28, 2014 4:45: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)
The subject. One of forum users detected that code snippet with square brackets like the following one isn't processed by the forum code syntax highlighter properly:

Quote:
var property = (PropertyInfo)col.Tag;
var objValue = property.GetValue(element, null);
row.Cells[i].Value = objValue;


The forum syntax highlighter is not our own component. This is a 3rd-party tool used by the YAF forum engine we use for this forum. The home page for the SyntaxHighlighter tool is

http://alexgorbatchev.com/SyntaxHighlighter/

I'm going to ask the community about this issue or search for a workaround/update.

Meanwhile, you can use the [quote] tag to mark C# code.

***
Note that square brackets are used to insert BB codes into forum posts. I've already placed a link to all BB codes which can be used on this forum:

http://forum.yetanotherf...p_index.aspx?faq=bbcodes

Edited by user Friday, May 16, 2014 4:17:19 PM(UTC)  | Reason: Not specified

Igor/10Tec  
#2 Posted : Friday, May 16, 2014 4:16:16 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)
After updating to the latest forum engine (YAF v2.1.1), the code syntax highlighter works as expected for C# code lines with square brackets.

Let's format the same code snippet again sing the 'code' tag to prove that:

Code:
var property = (PropertyInfo)col.Tag;
var objValue = property.GetValue(element, null);
row.Cells[i].Value = objValue;
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.