home *** CD-ROM | disk | FTP | other *** search
- * LANGUAGE SUPPORT FOR C
- Language support for C contains 3 main utilities to make coding in C faster
- and easier:
-
- @CTE[Template Editing]
-
- @CSI[Smart Indenting]
-
- @CCM[Construct Matching]
-
- In order to utilize these language support utilities, you must configure the
- @ME.HLP^FE[filename extension(s)] you use for C for the language type ^BC^b.
- CTE TEMPLATE EDITING FOR C
- DEFAULT KEY: <AltT> or <AltF9>
-
- Template editing is designed to reduce the amount of redundant typing by
- expanding a single character into one or more words, on one or more lines,
- which normally constitute a language construct. A typical situation is
- where an "IF <condition> THEN" construct, common to most high level languages,
- is desired. Typing in the leading "I" character, then pressing the template
- key will then complete the construct, placing the cursor in the proper spot
- to define the conditional part of the construct.
-
- i Builds an 'if () {' construct.
- w Builds a 'while () {' construct.
- f Builds a 'for () {' construct.
- { Builds matching braces.
- s Builds a 'switch () {' construct.
- d Builds a 'do { } while ();' construct.
- /* Builds a date stamped comment block.
-
- Examples:
- Original line:
- i
- After template:
- if () {
- }
-
- Original line:
- d
- After template:
- do {
-
- } while ();
- CSI SMART INDENTING FOR C
- Invoked by pressing <ENTER>
-
- Most high level languages are more readable if compound constructs and
- iterative loops are progressively indented. In order to automate this
- process, Multi-Edit provides smart indenting. When <ENTER> is pressed, the
- current line is examined(sometimes lines above and below are also examined).
- Based upon certain conditions, a decision is made whether to indent, undent,
- or remain the same.
-
- For C, if an opening curly brace '{' is the last character on the line,
- Multi-Edit will indent the new line one tab stop beyond the indent of the
- previous line. In addition, if the previous line is not terminated by
- a ';' or a '{' then it is assumed that this is a continuation line, and
- indents twice. If you are inside a comment, then an '*' is automatically
- added.
-
- CCM CONSTRUCT MATCHING FOR C
- MENU, Support, Match or <AltF6> or <AltM>
-
- Construct matching is useful for finding the beginning or ending of a large
- compound construct, and also to check to see if there is a missing opening or
- closing to the construct.
-
- In C, placing the cursor on the following pairs of keywords and invoking
- match will cause the matching keyword to be searched for:
-
- ( )
-
- { }
-
- If successful, the message line will read "Match Found", and the cursor will
- move to the matching keyword. If unsuccessful "Match NOT Found" will appear
- on the message line, and the cursor will not move.