Syntaxbox is a very nice text editing component written by Roger Alsing in C# which features all the trimmings of the Visual Studio code editor – definable syntax highlighting, intellisense (which they call AutoList), and a host of other nice features. I have been using it as part of a new FSX tool project, and needed to make a change.
The AutoList closes automatically on a number of keyboard events (such as pressing tab). One of those events was pressing space – which means that you cannot have a phrase in the Autolist to search for which includes a space (which I needed). So I made a small change that allows this. I added a new property to the EditViewControl class, bool AutoListAutoCompleteOnSpace. If this is set to true, the old behaviour continues (pressing space closes the AutoList). Setting it to false lets you have spaces in your AutoList contents. The default setting is true, so as to not break anyone’s code.