8.1. Comments


All the modes described in this chapter share a feature with the programming language modes such as Java mode and Lisp mode, which we discuss in Chapter 9. All these modes understand comments and use a single command, M-; (for indent-for-comment) to insert the appropriate comment syntax. Table 8-1 lists the comment syntax for the tools in this chapter.

Table 8-1. Comments in markup modes

If you type M-; in:

Emacs inserts:

HTML mode

<!--  -->

HTML helper mode

<!--  -->

SGML mode

<!--  -->

nxml mode

<!--  -->

psgml mode

<!--  -->

LaTeX mode

%% (on blank lines)

 
% (on lines with content)




Learning GNU Emacs
Learning GNU Emacs, Third Edition
ISBN: 0596006489
EAN: 2147483647
Year: 2003
Pages: 161

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net