CUSTOM HTML CODE COMPLETION

Hello,
We wanted to add our own HTML code completion logic to the editor. But specifying "<" as code completion char does not trigger the "NeedCodeCompletion" event if "<" was pressed.
Other chars like " " (space) did work.
Are we doing something wrong?
Here is the code we used:
var editor = new TextEditor();
editor.NeedCodeCompletion += Editor_NeedCodeCompletion;
editor.CodeCompletionChars = new char[] { '<' };
var lexer = new HtmlScriptParser();
lexer.Options |= SyntaxOptions.AutoComplete | SyntaxOptions.FormatSpaces | SyntaxOptions.CodeCompletionTabs | SyntaxOptions.CodeCompletion;
editor.Lexer = lexer;
Regards
Hi Kai,
We use String lexer style to highlight html tags, and by default code completion is suppressed for this style.
To re-enable it just add this line of code when creating a parser:
lexer.Scheme.Styles[(int)LexToken.String].PlainText = false;
Then it should trigger NeedCodeCompletion event when you type "<".
regards,
Andrew
Hello,
Thanks for the fast response!
It is working now.
Regards