Code formatting (BE 1.5.0.7)

Topics: Controls
Nov 2, 2009 at 8:41 PM

I just made a fresh install of BE from download of source for latest version - 1.5.0.7

But - I can't get code formatting to work. It simply doesn't do anything to the code I enter.

This could simply be

[code=csharp]public void InterfaceMethod();[/code]

 

When I go to "Extensions"-tab in "Settings" and select view "Codeformatterextension", it displays the following:

Source for [PATH\BlogEngine.Web\App_Code\Extensions\CodeFormatterExtension.cs] not found

 

I am probably missing something here - but what?

Coordinator
Nov 2, 2009 at 9:55 PM
Edited Nov 2, 2009 at 9:57 PM

From what I see, you need to change "code=csharp" to "code:c#" (at least use ":" instead of "="). There are a lot more options you can use for code formatting, check out this post, it is a bit old but still you'll get idea.

Oh, and this "file not found" error is ok, it is because code formatter uses it's own directory instead of default one.

 

Nov 4, 2009 at 7:28 AM

Hi,

Thank you - I was sure I had tested using semi-colon, but now it works just fine.

:o)