determine language in effect at specified offset [resolved]

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Benjamin Lewis
Avatar
Hi,
My custom language contains state transitions to SQL as a child language. I've implemented a "toggle comment" command which either comments or uncomments the selected region depending on its current state. Unfortunately, SQL uses different comment syntax than the parent language. Is there some way of determining which language rules are in effect at a specified offset?

[resolved]: I got it through the token at the given offset.

--
Benjamin Lewis


[Modified at 06/27/2006 03:38 PM]

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Right, using the Token is the way to get it.


Actipro Software Support

The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.