Range.SetStyle

Jan 19, 2012 at 4:22 PM

I am using syntax highlighting on a custom language which is based on the sql lexer. I want to add hotspots to some file paths in the document. To do this I am using the SetStyle method using a style with IsHotSpot set to true.

When I run this code however all the syntax highlighting for the document is missing and there is no hotspots.

Can anyone tell me what I am doing wrong?