YAFLogo

UndergroundS
10 years ago
v. 1.9.6.1

When formatting C# code that has square brackets inside the code, it breaks the code formatting at the interior square brackets rather than the wrapping [code] elements.
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
can you post an example that didnt work?

i think this is already fixed in yaf 2.0

testing

fib[0] = fib[1] = 1;
for( int i=2; i<100; ++i ) fib[i] = fib[i-1] + fib[i-2];

testing 2

fib[0] = fib[1] = 1;
for( int i=2; i<100; ++i ) fib[i] = fib[i-1] + fib[i-2];
UndergroundS
10 years ago
I believe you're right. I finally found the time to upgrade and that seems to be working now, thanks!

In looking at that, is there any way to get the code highlighting to show up in the post? It retains the spacing, but it's all just a gray box.

I noticed that when you preview a code block though it actually seems to do highlighting and add line numbers like in the attached screen shot.

Vs. the screenshot of your post that illustrates the lack of highlighting once the post is submitted. I just wondered if we could enable this somehow in the post outside of preview?
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button