[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 language_create

      language name: <string>
      researved comment start: <string>
      reserved comment end: <string>
      match: <string>
      autoindent flag: <yes/no>
      tabs: <number>
      word seperators: <string>

 AE uses a set of language definitions so that it can deduce how to store
 the folding information in the file without affecting the compilability of
 the file. It does this by inserting comments in the file. If we look at a
 typical "C" language definition :-

      language_create "c" "/*..." "*/" ".*\\.(c|h)" yes 0 "_"

 We can see that :-

      1) The language is called c
      2) "C" comments start with /* and end with */
         The ... is added to ensure real comments are not confused with
         comments added by the editor.
         This assumes that the user never starts a comment with ...
         This has been found to be a reasonable assumption (to date!)
      3) Files *.C and *.H are "C" files. Note that they are specified
         as an extended regular expression and it is in lower case.
         Note also the escaping of the backslashes in the string.
      4) The autoindent flag is set on.
      5) A tab setting of 0 implies that the tab key gives a real ^I tab.
         The tab setting is displayed at the top right hand corner.
         If a non-zero number is specified, then when the tab key is
         pressed that many spaces are inserted.
      6) The character _ (as well as white space is used to split up words.
         This information is used by word_left and word_right.

See Also: language_delete language_select Regular Expressions
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson