Outlining on language transitions

SyntaxEditor for WPF Forum

Posted 8 years ago by Kasper Tanggaard
Version: 11.1.0545
Avatar
Hi guys,

As far as I remember, SyntaxEditor for WinForms could automatically detect language transitions and do outlining for the inline code. Is this also the case for SE for WPF? If not, what's the easiest way to detect a language transition based on the token? I can use the key of the token for situations where the token key is unique, but for instance with inline <style> blocks, the tokens will be the same as for any other tags. What's the best approach here? :)

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kasper,

At this time we don't have automatic outlining for language transitions. I'll make sure that's on the TODO list.

If you are doing AST-based outlining, it's probably easier to detect language changes. But with token-based, you'd probably want to examine the Lexer property of the tokens for changes between tokens. However due to that other bug you found in another post, you might not be able to do that just yet until that one is fixed.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.