3.4. Load the Parsed DTD

Now that you have saved the DTD settings, you can load the .ced file and see the syntax highlighting for your .sgml files.

To load a parsed DTD file:

  1. Open an XML file in Emacs.

  2. Choose DTD -> Load DTD from the pulldown menu and choose the file you saved from the previous step. For instance, choose docbook.ced.

  3. You will know it is finished when you see the message Fontifying...done at the bottom of your screen. Loading the parsed DTD might take a long time. You can start editing the file before it finishes.

[Tip]Tip

You can also use the Emacs command Meta-x sgml-load-dtd to load the parsed DTD.