Monday, June 16, 2014

Code Syntax Editor for ASP.NET

If you are looking for code syntax editors for ASP.NET Web Forms, they are definitely hard to find since most Internet searches will return search results for HTML Editors for ASP.NET Web Forms rather than Code Syntax Editors/Code Highlighters.

Fortunately, there is one such Code Syntax Editor available for ASP.NET Web Forms and best of all, it is FREE!

You can download CodeHighlighter from here: http://www.actiprosoftware.com/products/controls/aspnet/codehighlighter

There are a few things to note about the Code Highlighter:

  1. Unlike most HTML Editors, it is not a full blown editor for editing code and providing immediate syntax highlighting.  Instead, it works on existing ASP.NET Web Forms controls such as a Textbox control and providing the appropriate syntax highlighting.
  2. Unfortunately, the control was built on ASP.NET v. 2.0 and does not appear to have been updated in quite some time.  As far as I can tell, there is not an updated release for .NET v. 4.0/4.5.
  3. The sample project that ships with the free download is not a functional Web Application project.  Instead, it is compiled as a Class Library project.  Therefore, you will have to manually create a new Web Application project and manually import the files, add the appropriate project references and modify the Web.config to contain the appropriate configuration settings.
  4. The sample project that ships with the download is a VB.NET project.  Therefore, if you are working in C#, you will have to manually convert over the VB.NET over to C# in order to use the corresponding C# code in your application.
Below is a screenshot of the resulting Web Page running Code Highlighter:

 

1 comment:

  1. This is very nice blog. It’s really very good information for us about Code Syntax Editor for ASP.Net. It has some information that I really need in my project for better enhancement. Few days before I found this kind of information from asp.net hosting. Thank you…..

    ReplyDelete