Выбрать главу

Table 8-3. Bindings for inserting entities for punctuation and symbols

C-x 8 prefix keystrokes Character entity Character displayed in browser
C-x 8 1 / 2 ½ ½
C-x 8 1 / 4 ¼ ¼
C-x 8 3 / 4 ¾ ¾
C-x 8 SPC   nonbreaking space
C-x 8 ! ¡ ¡
C-x 8 $ ¤ ¤
C-x 8 + ± ±
C-x 8 - ­ soft hyphen
C-x 8 . · ·
C-x 8 < &laquo; «
C-x 8 = &macr; ¯
C-x 8 > &raquo; »
C-x 8 ? &iquest; ¿
C-x 8 | &brvbar; ¦
C-x 8 c &cent; ¢
C-x 8 C &copy; ©
C-x 8 L &pound; £
C-x 8 P &para;
C-x 8 R &reg; ®
C-x 8 S &sect; §
C-x 8 u &micro; µ
C-x 8 x &#215; ×
C-x 8 Y &yen; ¥
C-x 8 ^ 1 &sup1; ¹
C-x 8 ^ 2 &sup2; ²
C-x 8 ^ 3 &sup3; ³
C-x 8 _ a &ordf; ª
C-x 8 _ o &ordm; º

Table 8-4 lists HTML mode commands.

Table 8-4. HTML mode commands

Keystrokes Command name Action
(none) html-mode Enter HTML mode.
C-c C-t SGMLInsert Tag sgml-tag Inserts a tag, prompting for attributes. If you enter html as the tag name, inserts a template html file.
C-c Tab SGMLToggle Tag Visibility sgml-tags-invisible Hides or shows the tags in the file.
C-c C-v SGMLView Buffer Contents browse-url-of-buffer Display buffer in default browser.
C-c C-s html-autoview- mode If this mode is on (this command toggles it), display file in browser each time it is saved in Emacs.
C-c 8 sgml-name-8bit-mode If turned on, certain keystrokes for inserting Latin-1 characters are captured and replaced with the appropriate entities. See "Character encoding in HTML mode" for details.
C-c C-f SGMLForward Tag sgml-skip-tag-forward Move forward to the next tag of the same level.
C-c C-b SGMLBackward Tag sgml-skip-tag-backward Move backward to previous tag of the same level.
C-c Del or C-c C-d SGMLDelete Tag sgml-delete-tag With cursor on or before a tag, deletes tag or tag pair.
C-c 1 html-headline-1 Insert an <h1>.
C-c 2 html-headline-2 Insert an <h2>.
C-c 3 html-headline-3 Insert an <h3>.
C-c 4 html-headline-4 Insert an <h4>.
C-c 5 html-headline-5 Insert an <h5>.
C-c 6 html-headline-6 Insert an <h6> (useful for footnote text) .
C-c Enter html-paragraph Insert <p> tag.
C-c C-c h HTMLHref Anchor html-href-anchor Insert a hyperlink.
C-c C-c n HTMLName Anchor html-name-anchor Insert an anchor so that a link can be created to the anchored part of the page.
C-c C-c u HTMLUnordered List html-unordered-list Create a bulleted list.
C-c C-c o HTMLOrdered List html-ordered-list Create a numbered list.
C-c C-c l HTMLList Item html-list-item Add an item to a list.
C-c C-c i HTMLImage html-image Insert <img src=""> and position cursor for you to enter filename of image.
C-c C-j HTMLLine Break html-line Insert a line break (<br>).
C-c C-c - HTMLHorizontal Rule html-horizontal-rule Insert a horizontal rule (<hr>).
C-c C-c r html-radio-buttons Insert a group of radio buttons. Emacs prompts for a name for the group, then repeatedly for value, whether it should be checked, and associated text. Press C-g to complete the group.
C-c C-c c HTMLCheckboxes html-checkboxes Insert a group of checkboxes. Emacs prompts for a name for the group, then repeatedly for value, whether it should be checked, and associated text. Press C-g to complete the group.
C-c ? SGMLDescribe Tag sgml-tag-help Provide brief verbal description of tag at cursor position.