logo WinWrap®

Symbol Highlighting

WinWrap® Basic is an embedded macro language component available for .NET and COM 32/64 bit Windows applications. The WinWrap® Basic Component is an alternative to Visual Basic for Applications (VBA), ActiveX (e.g. VBScript, JScript, PerlScript, Rexx-based WSH engines and others), and VSTA for this purpose. The WinWrap® Basic Component is compatible with VBA, Sax Basic, VB.NET and Visual Basic 6.0 style scripts.

Symbol Highlighting (v10.41+)

  • Highlight all instances of symbol by clicking on it
  • Navigate to other instances of the symbol clicking on navigation triangles
  • Navigate using Shift-Alt arrow hot-keys

Symbol Highlighting

Clicking on pv in line #12 highlights all the references to pv and its definition. The definition has a rectangle outline around the highlight.

'#Language "WWB-COM" Option Explicit Module M1 Public pv As String Friend fv As String End Module Sub Main M1.pv = "hi" Assert M1.pv, "hi" pv = "bye" Assert pv, "bye" fv = "private" Assert fv, "private" End Sub Sub Assert(ByVal e1 As Variant, ByVal e2 As Variant) If e1 <> e2 Then Stop End Sub

Navigation

In addition to highlighting the symbol, clickable triangles are displayed to the left and right of the symbol.

  • Clicking on the left triangle (or Shift-Alt Left) moves the caret to the previous reference.
  • Clicking on the right triangle (or Shift-Alt Right) moves the caret to the next reference.
  • Clicking on the up triangle (or Shift-Alt Up) moves the caret to the definition.

API

To turn off symbol highlighting use Query("Feature HighlightSymbol Off").

Conclusion

Rapidly locate all instances of a symbol in a script and navigate to the definition, next or previous reference.

Copyright Polar Engineering, Inc.