As shown in the first section, arbitrary parts of a source file can be made available to ProgDoc by enclosing them with comment lines of the form '// BEGIN tagname' and '// END tagname' respectively where in this and the following examples we will use the C++ comment syntax. However ProgDoc also supports a number of other languages.
When speaking about supported languages, one has to distinguish between highlighting support for a language which comes from pdhighlight and the support to extract code snippets out of files of a given language, which is provided by pdweave. The following table lists the supported languages with respect to both these tools. In general, any file may be used as input source, even if not listed here, by specifying ``text'' as type argument and the corresponding comment character(s) as comment argument to the \sourceinput command (see table on page ).
|c||C||// , /|
|cpp||C++||// , /|
|java||Java||// , /|
|scm||Scheme||; , ;; , ;;; , ;;;;|
|el||ELisp||; , ;; , ;;; , ;;;;|
|text||Text||# , // , -|