Posted 16 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 16 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 (v24.1.0) 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.