Yesterday's evening I was navigating and writing some code, line after line, I took a tour on the SharpDevelop Web Site, I love that tool, in the past years frequently I took a tour in the source code, to learn, to see what has been done.
So I went to the SharpDevelop Wiki and I found a wonderful online tool, a Code Converter. The tool is exposed as Web service and makes use of NRefactory to convert code.
The link is http://codeconverter.sharpdevelop.net/Default.aspx here you can find:
- a class converter:
http://codeconverter.sharpdevelop.net/Convert.aspx
the supported convertsions are:- C# to VB.NET
- C# to Boo
- VB.NET to C#
- VB.NET to Boo
- a snippet converter:
http://codeconverter.sharpdevelop.net/SnippetConverter.aspx
the supported convertions are C# to VB.NET and vice versa. - a code formatter:
http://codeconverter.sharpdevelop.net/FormatCode.aspx
supports ASP/XHTML, BAT, Boo, Coco, C++.NET, C#, HTML, Java, JavaScript, Patch, PHP, TeX, VBNET, XML
It's possible too to use these features in client applications directly using and calling the web service.
As example I tried to format and colorize an xml chunk as:
<configuration target="StandardDatabaseConfig">
<provider name="testProvider" refTo="XmlProvider, TestLib.Providers" />
</configuration>
the result is:
1: <configuration target="StandardDatabaseConfig">
2: <provider name="testProvider" refTo="XmlProvider, TestLib.Pr
oviders" />
3: </configuration>
Fantastic tool!
Ciao!
No comments:
Post a Comment