I'm using the ICSharpcode text editor, and I am looking for a way to do Word Wrap in it. Is there any documentation for this other than the source code? My only documentation so far has been the Code Project article, and the source code for Kaxaml. Most importantly, how does one turn WordWrap on in the editor? Second, is there any documentation that I am missing for the editor?
3 Answers
The ICSharpCode.TextEditor
does not support word wrapping yet. It will support it in SharpDevelop 4. See this forum post, among others. You can download SharpDevelop 4 Alpha from their build server.
In order to implement support for word wrapping yourself, you're gonna have to jump through a lot of hoops. And these hoops will all be on fire. If you really need this, in SharpDevelop 3, a good place to look for the code to word-wrap is DeveloperFusion as Jon T suggested.

- 40,828
- 14
- 81
- 115
I found this information about the editor:
http://community.icsharpcode.net/forums/p/100/19865.aspx
The poster wasn't sure about native word wrap support, but provides a link to a wrapper that handles word wrapping:

- 47,710
- 52
- 130
- 168
-
Yeah, I already found that, however it is just a generic class to split lines. I don't know how to hook it into the Text Editor, and neither the forum comment or anywhere shows me how. – Kris Erickson Feb 19 '09 at 18:31
-
Sorry I couldn't help more, the documentation on this seems a bit sparse. :( – Jon Tackabury Feb 19 '09 at 19:02
Word wrapping is very hard to get right and still have the renderer fast.

- 115,091
- 17
- 196
- 297