Go to the previous, next section.

Editing attributes

If you want to change the attributes of start tag you can simply edit them directly in the buffer. Or you can place the cursor at or after the start tag and use the sgml-edit-attributes command, available from the `SGML'-menu or on C-c C-a. This will create a new Emacs window with all possible attributes listed in the form

attribute name = current value.

The current value may be shown as `#DEFAULT' if the attribute has not been given a value in the start tag. The list also contains the attributes declaration as a comment. Note also that the current value is show without eventual quotes.

It is now possible to edit the attribute values. You can move to the next attribute with TAB. If you want to let an attribute have its default value use C-c C-d, this will insert a `#DEFAULT' in the value field.

If Emacs is running in a X window, the `#DEFAULT' will be underlined to distinguish it from normal values.

Finish the editing with C-c C-c; this will replace the attribute values in the main buffer with those edited. Note that values will be quoted as needed.

If you want to abort the editing, you can remove the window with C-x 0 or if you want it neat, kill the buffer and remove the window.

Some other keys are:

C-a
Go to the beginning of the value field.
C-e
Go to the end of the value field.
C-c C-k
Clear the value field.

Go to the previous, next section.