Indentation and code formatting

CodeHighlighter for ASP.NET Forum

Posted 16 years ago by Nigel Ellis
Version: 4.0.51
Avatar
Hi,

I'm using the code formatting library in a managed code application (Office Addin). The formatting is working fine (syntax coloring). I was wondering if there was anyway to have the engine handle reformatting indentation.

For example:
foreach (int i in method()) { Console.WriteLine(i); }

==>
...foreach (int i in method())
...{
......Console.WriteLine(i);
...}

Thanks,
Nigel.

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Only if the language implementation supports formatting. Our Web Languages Add-on's XML language does support document formatting but that's the only one we currently provide that does have built-in code formatting support at this time.


Actipro Software Support

The latest build of this product (v4.0.59) was released 13 years ago, which was after the last post in this thread.