May 28, 2009 at 10:39 AM
Edited May 28, 2009 at 10:40 AM
If you use a Configuration Xml, which is not necessary because you use the built-in Lexer of XML, you can change some settings e.g. Highlighting color, Font, Font-size etc.
With the second part of my post I meant you could fill your Autocompletelist from the code.
e.g. you extract some special words with RegularExpressions from the Text of your File.
With those matches you create a new Stringlist (List<string>) and set this list to your Autocompletelist:
this.sciDocument.AutoComplete.List = MyList;
The scintilla Control controls the Autocomplete list, so you write a new Eventlistener for the
OnCharAdded Event of the Scintilla Control
and in this Method you could check, if your Autocompletelist contains the last insterted Characters. If so you call the
this.sciDocument.AutoComplete.Show(); Method of the Control
and it shows the AutocompleteList with the value that machtes the inserted Characters.
here for a screenshot how it could look like.
I hope I could help a bit ;-)