Toggle Comment Selection


If you select a group of lines, the Edit..Toggle Comment Selection command will comment out that block of lines, or, if all lines in the block are already commented out, the block will be un-commented. The Ctrl-Q shortcut can also be used.

This command works with file types that support an end-of-line comment marker (which is supposed to be in column 1).  These file types are supported:

CMF, STI, CLS, PSH, BSH: adds "!" at start of each line

BAT, CMD: adds "rem" at start of each line

FOR, F90: adds "C" at start of each line

PAS, DPR: adds "//" at start of each line

For TAB files, Ctrl-Q will enclose the selected lines in a block comment thus:

![[!

COEFFICIENT (ALL,I,ISEC) (ALL,T,ALLTIME) K_L(I,T) ;
UPDATE (ALL,T,ALLTIME) K_L("SA",T) = K_A(T) ;
UPDATE (ALL,T,ALLTIME) K_L("SB",T) = K_B(T) ;
!]]!

Above, the middle 3 lines are commented out.  This type of block comment can be nested. If the above 5 lines were selected Ctrl-Q would remove the block comment markers.

 



URL of this topic: www.copsmodels.com/webhelp/tabmate/hc_ToggleComment.htm

Link to full GEMPACK Manual

Link to GEMPACK homepage