CallTips

From Niki

Jump to: navigation, search

NEdit Calltips

NEdit can give you quick little pop-up help boxes in your editor window for any keywords that have a "calltip" associated with them. The way it works is, you find or create a calltips file (typically they are written specifically for some given language mode you're interested in) and put it anywhere you like (for example, $HOME/nedit_calltips). Then, from NEdit, go to File --> Load Calltips File and choose that file (i.e. $HOME/nedit_calltips/python.tips).

The calltips file contains a few lines of text dealing with each keyword for which the file has a calltip.

To access a calltip from a calltips file you've loaded:

  • open a file,
  • highlight a word in that file for which you think a calltip exists, and
  • hit Ctrl-' (that's a single quote)
  • hit Esc to make the calltip box disappear

You can be directed to where you may find some calltips files by looking in the resources area on the NEdit website .

  • Calltip file for the NEdit macro language can be found here.

A few notes

  1. When you load a calltips file, the tips therein are global, and can be accessed from any buffers you have open.
  2. Calltips files stay loaded until either you unload them using File --> Unload Calltips File or until you quit NEdit.
  3. You can have more than one calltips file loaded simultaneously. If multiple calltip files contain the same calltip item, you'll be prompted to choose which calltips file you want the tip from.
  4. You can configure NEdit to automatically load a given calltip file (using the Preferences --> Default Settings --> Language Modes dialog) when you open a file corresponding to a given language mode. Once the calltip file gets loaded, again, it is available to any and all buffers.

See Help --> Features for Programming --> Calltips for more information.