GetWordFromPosition Parsing dash

Topics: Developer Forum
Mar 30, 2013 at 1:28 PM
I'm using the GetWordFromPosition method to provide CSS intellisense, however the method parses words from dashes, so keywords like font-size will only pick up on "size". It there a way to control how GetWordFromPosition parses?

Frank
Coordinator
Mar 30, 2013 at 6:25 PM
Try the Scintilla.Lexing.WordChars property. Include any alpha and numeric characters you want plus the dash character. Scintilla uses this information to identify word boundaries and will allow it to see "font-size" as one word instead of two.

Jacob