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

Inherits VBSyntaxLanguage

Public Sub New()

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

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?


Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.