Inline elements can also benefit from the template technique.
Another example of a frequently used element in DocBook
code element, used to
indicate text that is typed by the user. Here is a template
us, for this element:
<code > </code >
The workflow for marking up a bit of text as user input goes like this:
us template file.
Move to the end of the start tag (with C-e) and type the text to be marked up.
Use C-d to delete the newline so that the end tag abuts the end of the marked-up text.
Note the extra spaces before the closing
>” of the tags in
the template. Because XML allows whitespace before the
>” of a
tag, this furnishes more places where long lines can be
broken by the
(M-q) command, or the action of