txt, doc - Plain text document file
hkdoc.emf - Plain text hook definition
.txt - ASCII plain text file
.doc - ASCII plain text document file
The doc file type template handles the hilighting and text formating of a plain text file. Within the text document justification and word wrapping are typically enabled. The template allows the user to format text as left, right, center or no justification.
Auto Layout
Formatting rules
The automatic formatting rules used by fill-paragraph(2) in an automatic text mode are defined as follows:-
Text on column 0
Text on right edge
Text centered
Indented
Spell checking
Short Cuts
C-c C-h - Help information on current mode.
C-c C-s - Spell the buffer.
C-c C-b - Fill both; perform left and right justification on the margins.
C-c C-b - Fill center; center the text on the current line.
C-c C-l - Fill left; fill the text on the paragraph (ragged right edge).
C-c C-r - Fill right; place text on right margin.
C-c C-o - Reduce a paragraph to a single line.
C-c a - Move to automatic formatting mode (default).
C-c l - Change mode to left formating
C-c r - Change mode to right formating
C-c r - Change mode to both formating
C-c c - Change mode to center formating
C-c n - Change mode to no formating
f5 - Enable/disable auto spell checking.
S-f5 - Auto spell check buffer.
f6 - Reset the auto spell.
To move text to a word processor then it is advised that all paragraphs are reduced to single lines, leading white space should be deleted (any possibly blank lines) and then import to the word processor. This saves considerable time as the word processor styles may be applied without handling spaces and band end of line characters.
-!- document -!-
-!- document; sectioned -!-
Lines commencing with > are assumed to be comments, typically used at the head of the document .
> -!- document; sectioned -!- > > Author: My Self > Created: 11/11/97 > Modified: <211197.1003> > Location: /xx/yy/zz.doc
All lines commencing with start (*) are assumed to be bullet lists. Bullet is hilighted.
All lines commencing with [a-zA-Z]) or [0-9]) are assumed to be minor sections. The section number is hilighted. e.g.:
a) text 1) text
All text in single or double quotes is hilighted, assumed to be literal text. and are hilighted i.e. This is a "double quote" or 'a' single quote.
Lines commencing with underscore (_) are hilighted to the end. typically used as demarcation breaks or for section underlining
-!- Document; pseudo-code -!-
// introduces a comment to the end of the line.
Command words comprise:-
Pseudo logical operators include
-!- document; sectioned; pseudo-code -!-
The automatic mode sometimes mistakes an indented paragraph for a centered paragraph. This only typically occurs when the first line of the paragraph is not filled to the right. When the formatting error occurs, simply pad the line out so that it extends past the fill column and re-apply the formatting.
Unfortunately there is nothing that can be done to alleviate this problem, but it occurs infrequently.
(c) Copyright JASSPA 1999
Last Modified: 1999/12/01
Generated On: 1999/12/01