Hi there,
I'm looking for a way to display very long text lines in some kind of a text box. It's for a scripting/macro language for binary data patterns. It handles very simple macros to define a data stream, together with some sequencing features. However, my program allows to expand part of the macros into the final data stream, then editing the script again (e.g. to insert bit errors for debugging purposes). Here comes the trouble: the expanded macros can lead to very long code lines, exceeding the possibilities of a TextBox or RichTextBox.
Yep, I could butcher the code down into shorter lines, but that's not what I want. If the user defines a two-line-code leading to one megabit of binary data, he gets one megabit of binary data. And he gets it in a text editor, since there is more semantics remaining he might want to edit.
Editing this with a TextBox doesn't work, because that control wraps very long lines, even if WordWrap is set to false. A RichTextBox has the same behavior, although it has a larger threshold before it wraps too long lines.
The wrapping leads to incorrect line numbers, because every wrapped line has a new line number. I need the line numbers to tell the user where to look for syntax errors.
I tried Fireball an ScintillaNet, but both seem to be buggy, especially with that long text lines.
Does anybody have an idea? A fix for TextBox or RichTextBox, or a working editor component with no word-wrapping at all, or at least with correct line number after wrapping? Syntax Highlighting would also be cool, but that's not urgent.
If it's a component/control, I need it with a license that allows to use it in a commercial product (so no GPL).