Posted 13 years ago by Karl Grambow
Version: 4.0.0233
Avatar
Hi,

I have two quesitons.

Is it possible to have the end token for an outlining node to be created automatically?

For example, in vb.net, if you type #region "Test Region" and press enter, the #end region is automatically inserted. Note I'm not using SyntaxEditor for a .net language or with the addon languages.

Also, I know that in version 3.x it wasn't possible to autocase correct Regex Pattern Groups. Is this possible (or is there a way around this) in version 4.0?

Thanks,

Karl

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sure if you handle the KeyTyped event (or OnSyntaxEditorKeyTyped method in a SyntaxLanguage class) then you can look for ENTER and if you are in the appropriate spot, perhaps use editor.SelectedView.InsertSurroundingText and pass the "#end region" as the end text and a blank string as the start text.

As for the auto-case of regex patterns sorry but no that is still not possible.


Actipro Software Support

Posted 13 years ago by Karl Grambow
Avatar
Thanks,

I'll try that.

Karl
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.