This project is read-only.

GetWordFromPosition Parsing dash

Topics: Developer Forum
Mar 30, 2013 at 2: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?

Mar 30, 2013 at 7: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.