Home Download Order Feedback
PRISM
Prism Editor Logo
EDITOR

COMMAND REFERENCE

Product Information

Introduction
Testimonials!!
What's New
University Promotions
Quick Features
Using Prism
Language Definition
Automation
Templates
Wordlists

Reference

Printing Reference
Command Reference
Variable Reference
ShortCut Keys
Mouse Actions

Evaluation

Download Evaluation
Ordering/Registration
Release Notes
License

Languages 

Download Language
Submit Lanugage

Feedback 

Feedback
Contact

This page provides a reference to the macro commands available for the editor. These commands are broken down into the following types.

  • Editor commands are by far the most complex and give the user a great deal of flexibility for adding to the functionality of the Prism Editor.
  • Log commands allow the user to process information from the current file into a log file.
  • Filter commands allow the user to filter information in the current file.
  • Shell commands allow the user to interact with other programs.
  • Misc commands are other commands.
Special Prism Variables can be used in conjunction with these commands

Editing Commands

These commands allow the user to perform very fine editing and navigation. A complete list of commands follows. The prefix CMD precedes editing commands.
 
 
Command Description Parameters
CMDAPPENDNEXTCUT Adds the next cut text to end of the Clipboard.  
CMDBOOKMARKCLEARALL Clears all bookmarks in the window.  
CMDBOOKMARKJUMPTOFIRST Moves to the first line containing a bookmark.  
CMDBOOKMARKJUMPTOLAST Moves to the last line containing a bookmark.  
CMDBOOKMARKNEXT Moves to the line containing the next bookmark.  
CMDBOOKMARKPREV Moves to the line containing the previous bookmark.  
CMDBOOKMARKTOGGLE Toggles a bookmark for the current line on and off.  
CMDCHARLEFT Moves the cursor one character to the left.  
CMDCHARLEFTEXTEND Extends the selection one character to the left.  
CMDCHARRIGHT Moves the cursor one character to the right.  
CMDCHARRIGHTEXTEND Extends the selection one character to the right.  
CMDCHARTRANSPOSE Swap characters around the insertion point.  
CMDCOPY Copies the selection to the Clipboard.  
CMDCUT Cuts the selection and puts it on the Clipboard.  
CMDCUTSELECTION Cuts the selection and puts it on the Clipboard.  
CMDDELETE Deletes the selection.  
CMDDELETEBACK Deletes the selection or, if there is no selection, the character to the left of the cursor.  
CMDDELETEBLANKLINES Deletes the blank lines adjacent to the cursor.  
CMDDELETEHORIZONTALSPACE Deletes the spaces and tabs around the cursor.  
CMDDOCUMENTEND Moves to the end of the file.  
CMDDOCUMENTENDEXTEND Extends the selection to the end of the file.  
CMDDOCUMENTSTART Moves to the beginning of the file.  
CMDDOCUMENTSTARTEXTEND Extends the selection to the beginning of the file.  
CMDEND Moves to the end of the current line, bottom of the text window, or end of the file.  
CMDFIND Finds the specified text.  
CMDFINDMARKALL Finds the specified text and sets a bookmark at the found locations.  
CMDFINDNEXT Finds the next occurrence of the specified text.  
CMDFINDNEXTWORD Finds the next occurrence of the selected text.  
CMDFINDPREV Finds the previous occurrence of the specified text.  
CMDFINDPREVWORD Finds the previous occurrence of the selected text.  
CMDFINDREPLACE Displays the find & replace dialog box.  
CMDGOTOINDENTATION Moves to the end of the indentation.  
CMDGOTOLINE Moves to a user-specified line. The zero-based line number to jump to. If –1, the user is prompted.
CMDGOTOMATCHBRACE Finds the matching brace.  
CMDHOME Moves to either the start of the current line or the start of the text on that line.  
CMDHOMEEXTEND Extends the selection to either the start of the current line or the start of the text on that line.  
CMDINDENTSELECTION Indents the selected text right one tab stop.  
CMDINDENTTOPREV Indents to the position of the next text on the previous line.  
CMDINSERTCHAR Inserts a character at the current location. The character to insert.
CMDLINECUT Deletes the selected lines and places the text on the clipboard.  
CMDLINEDELETE Deletes the selected line.  
CMDLINEDELETETOEND Deletes to the end of the current line.  
CMDLINEDELETETOSTART Deletes to the beginning of the current line.  
CMDLINEDOWN Moves the cursor down one line.  
CMDLINEDOWNEXTEND Extends the selection down one line.  
CMDLINEEND Moves the cursor to the end of the current line.  
CMDLINEENDEXTEND Extends the selection to the end of the current line.  
CMDLINEOPENABOVE Opens a new line above the cursor.  
CMDLINEOPENBELOW Opens a new line below the cursor.  
CMDLINESTART Moves to the start of the current line.  
CMDLINETRANSPOSE Swaps current and previous lines.  
CMDLINEUP Moves the cursor up one line.  
CMDLINEUPEXTEND Extends the selection up one line.  
CMDLOWERCASESELECTION Makes the selection all lowercase.  
CMDNEWLINE Inserts a new-line character at the current location.  
CMDPAGEDOWN Moves the cursor down one page.  
CMDPAGEDOWNEXTEND Extends the selection down one page.  
CMDPAGEUP Moves the cursor up one page.  
CMDPAGEUPEXTEND Extends the selection up one page.  
CMDPARADOWN Moves to the beginning of the next paragraph.  
CMDPARAUP Moves to the beginning of the previous paragraph.  
CMDPASTE Inserts the Clipboard contents at the insertion point.  
CMDREDO Redoes the previously undone action.  
CMDREDOCHANGES Redoes the last action, ignoring movement commands.  
CMDREPLACE Replaces the first occurrence of the find text after the current position with the replace text and finds the next occurrence of the find text.  
CMDREPLACEALLINBUFFER Replaces the find text with the replace text in the entire buffer.  
CMDREPLACEALLINSELECTION Replaces the find text with the replace text in the selection.  
CMDSELGET Stores the current selection  
CMDSELECTAREA Selects the text between the current selection and a previously saved selection (CMDSELGET)  
CMDSELECTALL Selects the entire document.  
CMDSELECTLINE Selects lines of text.  
CMDSELECTPARA Selects the current paragraph.  
CMDSELECTSWAPANCHOR Swaps the anchor and the cursor in a selection.  
CMDSELSET Sets the current selection to a previously stored value.  
CMDSENTENCECUT Deletes the remainder of the sentence.  
CMDSENTENCELEFT Moves to the beginning of the previous sentence.  
CMDSENTENCERIGHT Moves to the beginning of the next sentence.  
CMDSETFINDTEXT Sets the text to search for in subsequent find commands. The text to search for.
CMDSETREPEATCOUNT Sets the repeat count for the next command. The desired repeat count. If 0, the user is prompted.
CMDSETREPLACETEXT Sets the text to substitute for the find text in subsequent find & replace commands. The text that replaces the find text.
CMDTABIFYSELECTION Replaces spaces with tabs in the selection.  
CMDTOGGLECASESENSITIVE Toggles case sensitive searching on and off.  
CMDTOGGLEOVERTYPE Toggles between inserting and replacing text.  
CMDTOGGLEPRESERVECASE Toggles intelligent case preservation when replacing text.  
CMDTOGGLEWHITESPACEDISPLAY Shows or hides whitespace indicators.  
CMDTOGGLEWHOLEWORD Toggles whole word searching on and off.  
CMDUNDO Undoes the last action.  
CMDUNDOCHANGES Undoes the last action, ignoring movement commands.  
CMDUNINDENTSELECTION Indents the selected text left one tab stop.  
CMDUNTABIFYSELECTION Replaces tabs with spaces in the selection.  
CMDUPPERCASESELECTION Makes the selection all uppercase.  
CMDWINDOWEND Moves to the bottom of the text window.  
CMDWINDOWLEFTEDGE Moves to the left edge of the text window.  
CMDWINDOWRIGHTEDGE Moves to the right edge of the text window.  
CMDWINDOWSCROLLDOWN Scrolls the file contents down one line.  
CMDWINDOWSCROLLLEFT Scrolls the window to the left.  
CMDWINDOWSCROLLRIGHT Scrolls the window to the right.  
CMDWINDOWSCROLLTOBOTTOM Scrolls the line to the bottom of the window.  
CMDWINDOWSCROLLTOCENTER Scrolls the line to the center of the window.  
CMDWINDOWSCROLLTOTOP Scrolls the line to the top of the window.  
CMDWINDOWSCROLLUP Scrolls the file contents up one line.  
CMDWINDOWSTART Moves to the top of the text window.  
CMDWORDCAPITALIZE Makes the first character uppercase.  
CMDWORDDELETETOEND Deletes a word to the right.  
CMDWORDDELETETOSTART Deletes a word to the left.  
CMDWORDENDLEFT Moves backward to the end of the previous word.  
CMDWORDENDLEFTEXTEND Extends the selection backward to the end of the previous word.  
CMDWORDENDRIGHT Moves forward to the end of the next word.  
CMDWORDENDRIGHTEXTEND Extends the selection forward to the start of the next word.  
CMDWORDLEFT Moves backward to the start of the previous word.  
CMDWORDLEFTEXTEND Extends the selection backward to the start of the previous word.  
CMDWORDLOWERCASE Makes the current word lowercase.  
CMDWORDRIGHT Moves forward to the start of the next word.  
CMDWORDRIGHTEXTEND Extends the selection forward to the start of the next word.  
CMDWORDTRANSPOSE Swaps the current and previous words.  
CMDWORDUPPERCASE Makes the current word uppercase.  

Log Commands
These commands are used to manipulate the log file. The logfile can also be manipulated by using the LOGEDIT focus command. This allows all editing actions to be performed on the log file.
 
Command Description Parameters
LOGSAVE  This copies all the bookmarked lines to the log file. This is usually used with a find/markall. [Filename] - Name of file to save as.
LOGEDIT This sets the focus for Editor commands. All future editing commands are carried out on the log file. The focus is reversed with NORMALEDIT command.   
LOGINSERTFILE This sets the focus for Editor commands. All future editing commands are carried out on the log file. The focus is reversed with NORMALEDIT command.  [Filename] - Name of file to insert at current position in logfile. 
LOGCOLOR Sets the color of the logfile to the active language.   
LOGTOTEXT Copies the text of the logfile to the current active window.   
ECHO Write text to the log file.  Any text after echo can be copied. A ; is used to prohibit a Carriage Return. 

Filter Commands
 
 
Command Description Parameters
USAGE [Params] <Search String> This command allows complex filtering of a file. It is similar to the UNIX 'grep' command and has extra features. By default this filter will generate a list of lines that contain the search string. This search is not case sensitive, does not search commands and includes line numbers in the output.

Example

USAGE clk

This will filter any lines with the word CLK, clk (etc) that are not found in comments and report them to the log file, including the line numbers.

-SC : If this is included in the command line, the filter will search in comments. Default is  not to search comments

-CS : Make the filter case sensitive. Default is not case sensitive

-C : Counts and reports the count, not the lines.

-B : Does not invoke logfile, but bookmarks the lines in the current window. The -HL option is ignored with this.

-V : Reverse the filter, report lines that do not match the search string. This may need to be used with the -SC option.

-HL : Hide the lines numbers. 'Usage' normally reports lines numbers.

<Search String>. This is everything after the space after the last parameter.

Shell Command
 
Command Description Parameters
SHELL <Command> This runs a command from the DOS prompt. This is normally used with Prism Variables to manipulate or process the current file.
 

Example

SHELL comile_it $Filename

Would run the program compile it on the current file being edited.

<Command>
The command to run at the DOS prompt

 

MISC Commands
Command Description Parameters
NORMALEDIT  This sets the focus for Editor commands. All future editing commands are carried out on the current file. This is the default focus for every macro.   
LOGEDIT This sets the focus for Editor commands. All future editing commands are carried out on the log file. The focus is reversed with NORMALEDIT command.   
FILEINFO This prints information about the current file to the logfile. This includes file size, save date and %comments.  

 

  Home Download Order Feedback