abtext.htm
abtext.htm · 5.3 KB
From the archive ab.zip
Download the archive « Back to the archive contents
<html>
<head>
<title>Dizzy Mud Area Builder's Guide - Text Editing</title>
</head>
<body BGCOLOR="#FFFFFF">
<h2 ALIGN="center">
How to edit a Plain Text File
</h2>
To create an area file, you will need either a text editor or a word processor.
An area file is much more like a program than like a memo or letter, so a word
processor is not just overkill for the job:
A text editor is <b>by far</b> preferrable because it creates the correct kind
of file by default. A word processor needs to be coerced and tricked into
producing what you need in this case.
<p>
If you're still fuzzy on the difference between text editors and word processors:
A word processor allows you to <b>format</b> text. If you can do things like
underline or boldface part of your text or mix different fonts in one document,
then you're looking at a word processor.
<p>
<h4><a NAME="test">Test for a correctly formatted plain text file:</a></h4>
If you can use <code><b>TYPE</b> filename</code>
(in DOS) or <code><b>cat</b> filename</code> (in UNIX) and you see your area text
and nothing else, no brackets, smileys or other funny characters that you didn't
type in, then you have produced the right kind of file.
<p>
<ul>
<li><h4>DOS Text Editors</h4>
MS-DOS from version 4.0 up includes a simple text editor free with the operating
system. It's called <b>EDIT</b>. You can just type <code><b>edit</b> filename.are</code>
and you'll be on your way. EDIT is limited to files of about 60 Kilobytes size.
This is enough for small to medium areas but will fail on large ones.
<p>
Many other good text editors are available for DOS, either as freeware or
shareware. Semware's QEDIT served me well for many years. Like most good DOS
editors, it does not restrict file size to 60 KB. Where there is a restriction,
it is usually in the hundreds of KB.
<p>
In a pinch, MS-Word or Word Perfect can be used to create an area file. However,
you must be very sure to save the file as '<code>plain DOS text</code>' or
'<code>plain text with line feeds</code>'
or something like that.
See <a HREF="#test">Test for a correctly formatted plain text file</a>, above,
for how to tell if you've produced a legible plain-text file.
</li>
<p>
<li><h4>Windows, Win95 and Windows NT Text Editors</h4>
MS-Windows and its various derivatives all include a simple editor called
<b>NOTEPAD</b>. Like its DOS counterpart (EDIT), NOTEPAD is limited to files
of about 60 KB size.
This is enough for small to medium areas but will fail on large ones.
<p>
Win95 and NT feature a new, improved text editor with word processing
capabilities called <b>WORD PAD</b>.
Depending on the kind of file it is used on, Word Pad can imitate a straight
text editor like Note Pad or it can do a subset of the funky things MS WORD
does. BEWARE: You MUST save your area file as a 'text document in DOS format'!
If you save as a Word 6 document, your area file will be totally unintelligible
to any MUD system. The simplest way to get Word Pad to work the right way
is to give your file a '<code><b>.TXT</b></code>' extension rather than
'<code><b>.ARE</b></code>'. Word Pad treats .TXT files as simple plain-text
files by default and also finds them more easily in a directory than .ARE
files. Calling the file by the 'wrong' extension is no big problem to anyone:
Either you can rename the file before you send it to the implementor, or the
imp does it for you.
<p>
There are many excellent freeware and shareware editors available on the
Internet. I used to use a freeware tool called <b>Super Note Tab</b> but
was annoyed by some minor bugs so I switched to <b>Ultra Edit</b>, which
is shareware priced at $35. Note that these are only 2 examples among
hundreds, as almost anyone who learns to program sooner or later undertakes
to build a better mousetrap (editor).
<p>
Although there is no sensible reason to do so, Word Perfect and MS Word
<em>can</em> be used to edit area files. However,
you must be very sure to save the file as '<code>plain DOS text</code>' or
'<code>plain text with line feeds</code>'
or something like that.
See <a HREF="#test">Test for a correctly formatted plain text file</a>, above,
for how to tell if you've produced a legible plain-text file.
</li>
<p>
<li><h4>UNIX, Linux and other IX'es</h4>
Unix users have their choice of <b>pico</b>, <b>vi</b>, <b>emacs</b> and many
other excellent
text editors. These programs don't restrict your choice of names in any way
and never produce the kind of binary garbage that often comes out of
word processors. Most text processing programs for UNIX (and its derivatives,
like Linus) are freeware. There's really no excuse to be using a text
processor.
</li>
<p>
</ul>
<a HREF="abcode.htm#tech">Back to Coding Overview</a>
<hr NOSHADE>
<table WIDTH="100%">
<tr>
<td>
</td>
<td ALIGN=right>
<small>This page was last updated <FONT COLOR="#FF0000">August 20, 1997</FONT>.</small>
</td>
</tr>
</table>
</body>
</html>