## Editor Synchronization Example

This example launches understand_c from a text editor. In this case, the editor is the inexpensive (but very powerful) TextPad editor. It is available on the Internet at http://www.textpad.com.

TextPad (and many other editors) offer internal variables that may be passed to external programs.

In this case we pass $Sel (text currently highlighted) as the entity name argument, $File as the filename, $Line as the line number, and $Col as the column where the entity can be found. In this example, the right-click menu of the entity is displayed at the current mouse position and whatever selection is chosen from the right-click menu will be loaded into the Understand window.

Now, after highlighting any entity in TextPad, we can choose the Tools->Understand_c Popup Menu option to activate Understand’s right-click menu for that entity. The selection from the right-click menu is then displayed in the Understand window.

Scientific Toolworks, Inc. http://www.scitools.com