Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

Command Stream Substitutions


You can use command stream (%) substitutions as shortcuts to incorporate certain types of information into the IDL command for your macro.

Command Stream
Substitution
Result
%F
The filename associated with the currently active editor window.
%P
The full path filename associated with the currently active editor window.
%N
The base name of the filename without its path or suffix.
%B
The base name of the filename without its path, but with its suffix.
%S
The currently selected text.
%L
The line number with the current insertion point.
%%
Inserts the "%" character.

Note
When creating a new macro, you may store the macro in the folder (directory) which IDL has already provided for the existing IDLDE macros. This folder exists in the lib\macros directory of your installation directory. If you wish to create a unique folder for the storage of only macros which you have created you may do so.


Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]