Debian Codegraph @

doc/cfgfiles.html

raw
1 <HTML>
2 <HEAD><TITLE>Configuration Files</TITLE></HEAD>
3 <BODY>
4 FTE configuration files are version specific, and must be recompiled
5 with each new version of the editor.
6
7 <P>On startup, editor will attempt to load a configuration file with
8 the basename as the executable and extension <TT>.CNF</TT>. The
9 configuration file is produced by compiling source files with <I>CFTE</I>.
10
11 <P>If the command line option <TT>-!</TT> is used, editor will not
12 attempt to load a configuration file and will use default built-in
13 settings.
14
15 <H1><A NAME="config-compiling">Compiling configuration</A></H1>
16 <P>Configuration files are compiled using <I>CFTE</I> program.
17
18 <P> <I>cfte</I> should be invoked on <TT>main.fte</TT>, for example:
19 <PRE>
20 [C:\FTE] cfte config\main.fte
21 $ cfte config/main.fte
22 </PRE>
23
24 <P>This will automatically compile all <TT>*.fte</TT> files included
25 from <TT>main.fte</TT> and produce <TT>fte-new.cnf</TT> if there
26 are no errors in source files.
27
28 <P>When configuration source files are sucessfully compiled, the resulting file <TT>fte-new.cnf</TT> should be copied to
29 <TT>fte.cnf</TT> and <TT>ftepm.cnf</TT>, or under Unix to <TT>~/.fterc</TT>
30
31 <P>After FTE is properly configured with the above procedure, you can
32 select Options/Recompile Configuration from FTE menu bar, and FTE will
33 invoke <I>CFTE</I> to recompile the configuration.
34
35 <H1><A NAME="config-syntax">Configuration file syntax</A></H1>
36 <P> Comments start with character <TT>#</TT> and last until the end
37 of line.
38 <P> Strings can be specified using any of <TT>' " /</TT> characters.
39
40 <P> Single quoted strings perform no substitution. To enter <TT>'</TT>
41 or <TT>\</TT> into a string precede it with a backslash.
42
43 <P> Double quoted strings perform the following substitutions:
44 <PRE>
45 \t -> ^I, tab character
46 \r -> ^M, CR
47 \n -> ^J, LF
48 \e -> ^[, escape character
49 \v -> ^L, vertical tab
50 \b -> ^H, backspace
51 \a -> ^G, bell
52 </PRE>
53 <P> Strings started by <TT>/</TT> character require no escaping (except
54 for '/'). Mostly useful for specifying <A HREF="regexp.html">regular
55 expressions</A> without double backslashes that are necessary in single
56 and double quoted strings.
57 </BODY>
58 </HTML>