Igor/10Tec
2014-04-28T15:45:12Z
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:

引用:

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 
Igor/10Tec
2014-05-16T15:16:16Z
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:

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