ICSharpCode.TextEditor

Jun 10, 2009 at 9:49 PM

I have re-used the Highlighter Text Box that has been used in the Grammar Explorer in a project that I am working on.  I have been considering trying to implement the ICSharpCode.TextEditor that SharpDevelop uses.  It has some advanced features like highlighting and code folding.

Has any one tried this or have thoughts on the best way to go about this.  There seems to be a pretty good tutorial on implmenting the ICSharpCode.TextEditor on code project at:

http://www.codeproject.com/KB/edit/TextEditorControl.aspx

I have the released version of Irony implemented currently and haven't tried to upgrade to the newest Source Drop.

Coordinator
Jun 19, 2009 at 3:38 AM

Hi

Looks like there's nobody around who tried this before. There were some early attempts, by Soren, here's a thread on SharpDevelop website:

http://community.sharpdevelop.net/forums/p/7672/21671.aspx

Good luck with your effort anyway. I would strongly recommend using Irony version from Source code page for this - it should work much better for this

Let me know if you need any help, or extra Irony tweaks to put into Irony core

Roman

Jun 19, 2009 at 7:46 PM

Thanks for the link.  I had basically created a XML doc the control expects for highlighting.  Once I have it working the way I think it should I was going to query bits of Irony to emit the XML on the fly and then refresh the hightlighter.  I'll take a look at the newest Irony Code and see if I can convert my code to use the new stuff.  I am new to Parsers/Lexers, so it was probably a minor miracle I got the older version working.  Time for some refactoring I suppose.