Warning: Undefined variable $g_imageViewer in C:\Users\Momin\sanestudios\gitroot\projects\Site\header.sg on line 81
The -l command is useful for external applications that can launch an editor and specify a line number on the command line. A good example is windiff. To use NitroLite with windiff, select Edit->Set Editor from the window menu. Set the editor string to: n2 -l %l %p. This tells windiff to launch NitroLite, open the current file and goto the current line.
File Menu Commands
Edit Menu Commands
Tools Menu Commands
Window Menu Commands
Help Menu Commands
Other Commands (not displayed on the menu)
Command Window HistoryThe command window provides history functionality similar to most command consoles. When the command window is opened, the last command executed is selected in the command window. Use the Up Arrow and Down Arrow keys to cycle through the command history. Pressing F8 will attempt to find a command in the history the matches up to the current position in the command window. This allows you to quickly find long commands instead of typing in the entire command line. Example:
Command Window Path CompletionThe NitroLite command window provides path completion functionality similar to that in command consoles. Using command completion can save you a lot of time when specifying file names in the command window. To complete the current path in the command window, simply press Tab. Example:
Custom Tools. The Output Window is created automatically as needed and is treated just like other NitroLite windows. Notice that closing the Output Window destroys the text currently contained in the output window.
Output Window TagsThe Output Window attempts to recognize filenames and line numbers. Double click or press Enter on a line with a filename/linenumber to open the file and goto the specified line. Tested formats include that produced by the Microsoft C/C++ compiler for errors and warnings as well as the output of findstr /n. Specifically, the supported formats are:
filename.ext(line_number) and filename.ext:line_number
where filename.ext is the filename (fullpath, or relative to the current working directory) and line_number is the target line number in the file.
Using the Command Window.
For more information on path completion see Command Window Path Completion.
setopt with no paramaters displays a list of the current options and their current values formatted for use in a NitroLite script. This allows you to quickly copy and paste into a script for modifying options.
setopt /? displays all known options with their types.
setopt option_name outputs the current value of the option to the command window for quick copy and pasting into other applications.
setopt option_name value sets the value of the specified option to value.
When specifying option names, if the category is missing (i.e. General., CPP. etc) General is assumed. So for example: setopt FontName will output Courier New to the command window. and setopt CommentFgColor will fail since General.CommentFgColor does not exist.
There are 3 types of options:
- DWORD options (i.e. numeric). Values should be specified as decimal integers.
- STRING options. Values should be specified as a single line string (spaces are allowed).
- COLOR options. Values should be specified as #rrggbb, where rr=red value in hex, gg=green value in hex and bb=blue value in hex.
You can use the unsetopt command to reset an option to it's default value.
Option Reference Table
C++ Files (*.cpp;*.c;*.cxx;*.h;*.hxx;*.es)\n*.cpp;*.c;*.cxx;*.h;*.hxx;*.es\nText Files (*.txt)\n*.txt\nHtml Files (*.htm;*.html;*.srf)\n*.htm;*.html;*.srf\nXML Files (*.xml; *.xsl)\n*.xml;*.xsl\nAll Files (*.*)\n*.*\n
all on one line. As you can see the format should be: display name\next1;ext2;...;extx\n.
A new NitroLite window will be created with the directory listing. Output windows are always read only. You can however select text, copy it and paste it in other windows. Alternatively, you can use the Save As command from the File menu to store the output for later reference.
Using Replacements in Custom ToolsReplacements can be used in custom tool command line arguments. These replacements allow you to access information contained in NitroLite and pass it on to the custom tool.
The following replacements are available:
To create a session file:
Last modified 12/11/2020
©1999-2011 SaneStudios LLC. All rights reserved.