Setup and configuration

Next: Documenting ``C++''  Prev: Invoking d4c&b

Determining file type

Before parsing a file, d4c&b has to determine what language it's written in. You can specify a language explicitly in one of the first 3 lines of the file. The language name should appear in this line both preceded and followed by `-@-'. For example, `// -@- C++ -@-' specifies a ``C++'' file. Other predefined language names are `tcl', `bison', `flex', `doc' and `texi'.

In the absence of such line, d4c&b will use an EMACS mode specification (`-*- C++ -*-') if one exists, or will use the file name suffix. Mapping of suffixes to languages is configurable.

Configuration file

Many configuration options are given in a preference file. By default, d4c&b looks for a file named `d4cab.pref' first in top-source-directory, than in the user home directory.

Note that you may define your own highlights as well.