Posted 12 years ago by Leif Zars
Avatar
Does autoreplace and triggers work with the addons?

Inherits VBSyntaxLanguage

Public Sub New()
MyBase.New()

Dim chars As CharClass = New CharClass()
chars.Add(vbTab)
chars.Add(" "c)
chars.Add(vbLf)

Me.Triggers.Add(New ActiproSoftware.SyntaxEditor.AutoReplaceTrigger("CatDog", chars))

Me.AutoReplace.Add(New AutoReplaceEntry("cat", "dog"))
End Sub

when i type cat then space nothing changes, am i missing an option?

Leif

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Leif,

Yes, you need to add the appropriate lexical states to the AutoReplaceTrigger.ValidLexicalStates. Then it should work for you.


Actipro Software Support

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.