Warning: Undefined variable $g_imageViewer in C:\Users\Momin\sanestudios\gitroot\projects\Site\header.sg on line 81
NitroLite DocumentationCommand Line ReferenceMenu CommandsUsing the Command WindowThe Output WindowBuilt in Command ReferenceOptions ReferenceUsing Custom ToolsUsing SessionsCommand Line ReferenceUsage:
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. BackMenu CommandsFile Menu CommandsEdit Menu CommandsTools Menu CommandsWindow Menu CommandsHelp Menu CommandsFile Menu Commands
Edit Menu Commands
Tools Menu Commands
Window Menu Commands
Help Menu Commands
BackOther Commands (not displayed on the menu)
BackUsing the Command WindowNitroLite provides a command window for quickly accessing editor built in commands and launching external tools. Pressing Alt+C opens the command window. Type a command and press enter to execute the command. There are two main types of commands that can be executed:
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:
BackThe Output WindowThe Output Window displays the output of commands launched from the command window or 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. BackBuilt in Command ReferenceFor more information see Using the Command Window.For more information on path completion see Command Window Path Completion.
BackOptions ReferenceMost NitroLite options are accessible through the Tools->Options dialog. All options are accessible through the command window. You can use the setopt command to examine and modify options. Please note that options set using setopt are not saved. To save the options (i.e. make them persistent across sessions) use the saveopts command, or open the Tools->Options dialog and Click OK.Using setopt: 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
BackFileTypes OptionThe General.FileTypes option controls what file types are displayed in the NitroLite open file dialog. The format for this option is different than other STRING options. The default value is: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. BackQuickOpen OptionThe General.QuickOpen option specifies the path to search for files when the QuickOpen command is invoked. The default value is: .;%INCLUDE% The format is a ; delimited list of paths. NitroLite expands environment variables (when surrounded by a %). So the default value means search the current NitroLite working directory, then all directories that are part of the INCLUDE environment variable.BackUsing Custom ToolsNitroLite allows you to launch tools from inside the editor and redirect the tool's output to a window in the editor. For example, it is often useful to get a directory listing in the editor. The following steps will guide you through setting up a custom tool for accomplishing this:
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:
BackUsing SessionsSession files are used to save a snap-shot of the current NitroLite environment. The session file is a NitroLite script file that opens all files that are currently open. The session file also includes the bookmarks that are currently set and the currently active lines.To create a session file:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Last modified 12/11/2020 ©1999-2011 SaneStudios LLC. All rights reserved. |