[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
The term text has two widespread meanings in our area of the computer field. One is data that is a sequence of characters. Any file that you edit with Emacs is text, in this sense of the word. The other meaning is more restrictive: a sequence of characters in a human language for humans to read (possibly after processing by a text formatter), as opposed to a program or binary data. This chapter is concerned with editing text in the narrower sense.
Human languages have syntactic/stylistic conventions that can be supported or used to advantage by editor commands: conventions involving words, sentences, paragraphs, and capital letters. This chapter describes Emacs commands for all of these things. There are also commands for filling, which means rearranging the lines of a paragraph to be approximately equal in length. The commands for moving over and killing words, sentences and paragraphs, while intended primarily for editing text, are also often useful for editing programs.
Emacs has several major modes for editing human-language text. If the file contains text pure and simple, use Text mode, which customizes Emacs in small ways for the syntactic conventions of text. Outline mode provides special commands for operating on text with an outline structure.
For text which contains embedded commands for text formatters, Emacs has other major modes, each for a particular formatter. Thus, for input to TeX, you would use TeX mode. For input to groff or nroff, use Nroff mode.
Instead of using a text formatter, you can edit formatted text in WYSIWYG style (“what you see is what you get”), with Enriched mode. Then the formatting appears on the screen in Emacs while you edit.
If you need to edit pictures made out of text characters (commonly referred to as “ASCII art”), use M-x edit-picture to enter Picture mode, a special major mode for editing such pictures. Voir la section Editing Pictures.
The “automatic typing” features may be useful when writing text. Voir (autotype)Top.
30.1 Words | Moving over and killing words. | |
30.2 Sentences | Moving over and killing sentences. | |
30.3 Paragraphs | Moving over paragraphs. | |
30.4 Pages | Moving over pages. | |
30.5 Filling Text | Filling or justifying text. | |
30.6 Case Conversion Commands | Changing the case of text. | |
30.7 Text Mode | The major modes for editing text files. | |
30.8 Outline Mode | Editing outlines. | |
30.9 TeX Mode | Editing input to the formatter TeX. | |
30.10 SGML, XML, and HTML Modes | Editing HTML, SGML, and XML files. | |
30.11 Nroff Mode | Editing input to the formatter nroff. | |
30.12 Editing Formatted Text | Editing formatted text directly in WYSIWYG fashion. | |
30.13 Editing Text-based Tables | Editing text-based tables in WYSIWYG fashion. |
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.