Next / Previous / Contents / TCC Help System / NM Tech homepage

5.4. Markup commands

tab Indent the current line according to the level of nested block tags. The indentation is two spaces per level.
M-C-\ Indent all the lines in the region using the same process as for tab.
C-c C-f Insert an end tag for whatever element the cursor is in. This works whether you are still inside the start tag or in the content.
C-c C-i Used when you have finished the start tag of an inline element, up to but not including the closing “>”. This command adds the closing “>” and an end tag, and then places the cursor between the tags so you can type the content.
C-c C-b Like C-c C-i, but used with block elements. The command adds the closing “>”, then a blank line, then an end tag on yet another separate line. The cursor is left indented at the proper level on the central blank line.
M-q Reformat the paragraph containing the cursor. This works best if the content does not start on the same line as the start tag.
C-c C-x Inserts an XML processing instruction at the top of your file:
<?xml version="1.0" encoding="utf-8"?>