Here are a few functions that will take any Autoit code and convert it to RTF format with AutoIt syntax highlighted.
The code can be saved or applied right to the RichEdit control you are working with.
Special thanks go to MrCreator. A good amount of ideas for different parts of the code and regular expressions came from studying his Autoit Syntax Highlight for HTML\BBCode. Viewing how he handled certain situations was very helpful. Thanks to Robjong also for feedback on some of the SRE expressions.
This latest updated was all about speed. With the previous version, it was very slow when dealing with large udfs like Winapi.au3 for example. This new version gets it done in around 13 seconds which I was very happy with. I also broke out all the colors in the RTF color table making them easy to modify if you want. Same with font and font size. One other addition is the update function which can be used to show progress as the conversion is happening.
Please let me know if you have any problems. Thanks
Update: 3/18/12
- Got more help from Robjong with some of the regular expressions. Thanks again!
- Fixed crash when loading large file.
Change Log:
RESH.zip 17.51K
238 downloads
RESHv2.zip 21.1K
113 downloads
RESHv2.1.zip 22.39K
144 downloads
RESHv2.2.zip 24.44K
358 downloads
Edited by Beege, 18 March 2012 - 06:13 AM.






