Sunday, August 17, 2003 2:12 AM
Aylar
AylarSolutions.Highlight 1.0 - Released
I have finally finished it! The first public release of AylarSolutions.Highlight (formerly known as CodeHighlight) is actually available. Go here to get it:
http://aspalliance.com/aylar/highlight/aylarsolutions.highlight-1.0.zip
Currently there is one known bug and that is with keywords that contains a space, i.e. VB.net's 'End Class', which by definition isn't a word, but rather a collection of words. I have solved this by adding an 'End' keyword to the VB.NET language definition.
Now, you are perhaps asking yourself, what is this AylarSolutions.Highlight thing Thomas is talking about, and what can it do for me?
Well, AylarSolutions.Highlight is a .NET component written in C#, that allows you to very easily get HTML marked-up code. All you need to do is to pass your code source through Highlighter.PerformCodeHighlight method and au voila, it spits out a marked-up version.
Currently the language definition file (Languages.xml), contains definitions for C#, VB.NET, J# and T-SQL. You can easily extend this small definition collection, either by altering the XML file by hand, or by taking advantage of the Configurator class that is shipped with the component (Note: the Configurator class is currently not working 100% due to some changes to the structure of the configuration file. This will be fixed in a couple of days).
For the future, I have planned to add support to generate XML and RTF marked-up code, as well as release a web and windows configuration application to allow you to more easily configure the component's configuration file.
Please give me some feedback on the control, either by adding comments to this post or emailing me at aylar AT aspalliance DOT com.
Update: I had forgotten to zip down the Languages.xml file, this is now fixed. This file should either be placed in the root of the application where you are running the component from, or specify its location using a web.config file or the ConfigurationFile property.
Filed under: AylarSolutions.Highlight