Template Menus:


These menus allow the user to insert blocks of text (typically code) into the CSD text area at the location of the cursor.  This menus are "pinnable" by selecting the perforated edge (dashed line) at the top of any menu.  The default language menus contains the major constructs of the current language.

Additionally, the user may create custom menus by putting menu files in the directory  .grasp/templates  under the users home directory. The file format is as follows:


!menu_name

#block_name
<_
   insert your custom block here (any text)
_>

#block_name2
<_
   insert your custom block here (any text)
_>

!menu_name2

#block_name
<_
   insert your custom block here (any text)
_>


The control strings -  ! # <_ _>  - must be left aligned. Lines of text that do not begin with ! or #, and are not between <_ and _> will be ignored, and can be used as comments.


Template files with extension ".ada95" will be used for Ada95, extension ".c" for C, ".cpp" for C++, ".java" for Java, ".vhdl" for VHDL, and other extensions for all CSD windows.


The default menu files are in   $GRASP_HOME/templates .
