J.5. Documentation Authoring#
The documentation sources are most conveniently modified with an editor that has a mode for editing XML, and even more so if it has some awareness of XML schema languages so that it can know aboutDocBook syntax specifically.
Note that for historical reasons the documentation source files are named with an extension.sgml
even though they are now XML files. So you might need to adjust your editor configuration to set the correct mode.
J.5.1. Emacs#
nXML Mode, which ships withEmacs, is the most common mode for editingXML documents withEmacs. It will allow you to useEmacs to insert tags and check markup consistency, and it supportsDocBook out of the box. Check the nXML manual for detailed documentation.
src/tools/editors/emacs.samples
contains recommended settings for this mode.