home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
ED_ER.ZIP
/
ED.DOC
next >
Wrap
Text File
|
1994-01-22
|
16KB
|
429 lines
STOP!
If you are using a
program other than
ED.EXE to read this
file, exit it and
type:
ED ED <ENTER>
ED: A C source code editor
Version 4.0
January 1994
Written by Herb and Eric Ridge
NEW ADDITIONS
- minor bugs have been fixed
- Function Lister/Finder (^K) has been improved (see Line #351; press F10)
- additions to the EDCONFIG. file (see Line #84; press F10)
- improvements to loading files from the command-line
- additions to the Manual (ED.DOC)
- ED works well from within Microsoft Windows (as a DOS APP)
************************ NEW COOL ADDITIONS ***********************
ED now supports source-code coloring, just like the big IDE
programs that cost a lot of money. It colors KEYWORDS, COMMENTS,
NUMBERS, SYMBOLS, STRINGS, and DIRECTIVES. And it does it fast too!
*******************************************************************
************************ NEWS FLASH *******************************
ED is now able to load a file of any size (upto the ammount of memory
on the system). However, if the file is unstandard (i.e. EXE or COM
files) it will NOT load it.
*******************************************************************
WELCOME
Welcome to ED. This file contains information on all of the many options
that ED has to offer.
INTRODUCTION
First of all, ED is a C source code editor/compiler, which means that
you can create, compile, and run your C programs from within ED!
NOTE:
ED is NOT a compiler! It just allows you to compile your program via your
compiler's COMMAND-LINE COMPILER!
Secondly, ED is a general purpose editor for all ASCII files.
Third, ED is easy to use. Possible selections are always shown in a
menu at the bottom of the screen. There is no confusing configuration
you need to wade through to get ED to work. (Well, it's not TOO confusing!)
GETTING STARTED
If you are using a hard disk I recommend that you put ED.EXE in your
UTILITIES directory or any directory that is in your PATH statement. ED will
work in CGA's 25 line mode, EGA's 43 line mode, or VGA's 50 line mode. ED will
automatically start with the maxium lines per screen that you system supports.
It will also work on COLOR or MONOCHROME monitors!
ED can be started in three ways...
1. just type ED <ENTER>
this starts UP ED and display's a window with all the files in
the current directory. You can change the directory by pressing
F1. You can load a file by selecting the desired file and pressing
<ENTER>.
2. type ED myprog
this starts UP ED with "myprog" already loaded. ED will
automatically add the .C to the end of your filename. If the
.C extension is not found it looks for .CPP, .ASM, .DAT, .DOC, .TXT,
.BAT. If none of these are found it starts a file in ED with no
extension.
3. type ED nonexist.no
this will start ED with a NEW file.
CONFIG FILE
(called EDCONFIG. )
ED supports a CONFIG file. This file specifies the colors and default
mask for ED. The file should look something like this :
Tab 3 -- range = 0 to 8
TextBackground 1 -- range = 0 to 15
TextForeground 15 -- range = 0 to 15
KeywordBackground 1 -- range = 0 to 15
KeywordForeground 7 -- range = 0 to 15
SymbolBackground 1 -- range = 0 to 15
SymbolForeground 11 -- range = 0 to 15
CommentBackground 1 -- range = 0 to 15
CommentForeground 14 -- range = 0 to 15
NumberBackground 1 -- range = 0 to 15
NumberForeground 12 -- range = 0 to 15
DirectiveBackground 1 -- range = 0 to 15
DirectiveForeground 3 -- range = 0 to 15
StringBackground 1 -- range = 0 to 15
StringForeground 10 -- range = 0 to 15
BottomLineBackground 15 -- range = 0 to 15
BottomLineForeground 0 -- range = 0 to 15
BottomLineHighlight 4 -- range = 0 to 15
FileMask *.* -- default mask that ED will use to load files.
(settings shown are can be changed.)
Except for TextBackground/Foreground and the BottomLine stuff the colors
are used for the SOURCE CODE COLORING feature of ED.
This file must be in the ROOT directory of your current working disk.
If you delete this file or any part of it, ED will use it's defaults
BASIC MOVEMENT
KEY | WHAT IT DOES
------------------------------
ESC | Quits ED (prompts for save)
UP ARROW | Moves cursor UP one line
DOWN ARROW | Moves cursor DOWN one line
LEFT ARROW | Moves cursor LEFT one space
RIGHT ARROW | Moves cursor RIGHT one space
HOME | Moves cursor to beginning of line
END | Moves cursor to end of line
TAB | Moves cursor 3 spaces to the RIGHT
DELETE | Deletes one character to the RIGHT of the cursor
BACKSPACE | Deletes one character to the LEFT of the cursor
PAGE UP | Moves cursor UP one page
PAGE DOWN | Moves cursor DOWN one page
INS | Toggles the INSERT and OVERTYPE mode
█ cursor = overtype ▄ cursor = insert
ENTER | ADDS CR/LF to line (if in middle of line it moves
everything from the RIGHT of the
cursor DOWN. It also puts the text
over the same columns as the line
above it)
FUNCTION KEYS
KEY | WHAT IT DOES
-----------------------
F1 | HELP
F2 | Finds the word at the cursor
F3 | Finds the occurrence
F4 | Goes to the Cut & Paste Mode
F5 | Runs compile
F6 | Issues a DOS shell
F7 | Displays all 256 ASCII characters in a table
F8 | Shows the DOS screen
F9 | A programmers calculator
F10 | Brings the cursor to a specified line number
CONTROL + KEYS
KEY | WHAT IT DOES
----------------------------
^F | Find
^K | Goto function
^N | Inserts a blank line
^P | Inserts the Clip Board at the cursor
^Q | Finds matching {} ()
^R | Deletes from the cursor to the end of the line
^Y | Deletes the entire line
^PAGE DOWN | Moves the cursor to the end of file
^PAGE UP | Moves the cursor to the top of file
^END | Moves the cursor to the bottom of screen
^HOME | Moves the cursor to the top of screen
^LEFT ARROW | Moves the cursor one word to the LEFT
^RIGHT ARROW | Moves the cursor one word to the RIGHT
SHIFT + KEYS
KEY | WHAT IT DOES
---------------------------------------
SHIFT + LEFT ARROW | Takes you to the Cut & Paste menu and starts
selecting to the LEFT
SHIFT + RIGHT ARROW | Takes you to the Cut & Paste menu and starts
selecting to the RIGHT
SHIFT + UP ARROW | Takes you to the Cut & Paste menu and starts
selecting UP a line
SHIFT + DOWN ARROW | Takes you to the Cut & Paste menu and starts
selecting DOWN a line
SHIFT + HOME | Takes you to the Cut & Paste menu and selects
from the cursor to the front of the line
SHIFT + END | Takes you to the Cut & Paste menu and selects
from the cursor to the end of the line
ALTERNATE + KEYS
KEY | WHAT IT DOES
----------------------------
ALT + F | File menu
ALT + S | Search & Replace menu
ALT + X | Quits ED (prompts for save)
DETAILED DESCRIPTION OF FUNCTIONS
HELP - F1
The HELP function simply display's some basic help. Press the HILIGHTED
letter to view help on the topic you want.
FIND WORD AT CURSOR - F2
This searches the file for the word that the cursor is on. The options
in the SEARCH menu affects the way it searches(options are explained later).
FIND THE NEXT OCCURRENCE - F3
This finds the next occurrence of the word specified by pressing F2 or by
what was specified in the SEARCH menu. The options in the SEARCH menu do
affect the way this option works.
CUT & PASTE MENU - F4
This is a Cut & Paste menu. You select text with the
UP, DOWN, LEFT, RIGHT, PAGE UP, PAGE DOWN, HOME, and END keys. There are nine
options. They are:
KEY | WHAT IT DOES
----------------------------
F1 | Copies selected text into the Clip Board
F2 | Copies selected text into the Clip Board
and removes it from the file
F3 | Finds the selected text
F4 | Prints the selected text
F5 | Saves the selected text to a file
F6 | OUT-DENTS the selected lines
F7 | IN-DENTS the selected lines
DEL | Deletes selected text
ESC | Leaves the Cut & Paste menu
CAUTION: The DEL key does NOT put what you have selected into the
Clip Board, so once you push DEL-it's gone!
NOTE: Once you start to select UP or DOWN you are not able to
select LEFT or RIGHT. And the same applies for the LEFT and
RIGHT.
COMPILE PROGRAM - F5
The COMPILE PROGRAM function is very useful. To use it all you have to
do is put in remarks /* */ at the top line of your file what you would use to
normally compile your program from DOS using your compiler's COMMAND-LINE
COMPILER. For example, if you are using Turbo C you would put the following
at the top line (line #1) of your file:
/* tcc myprog.c mylib.lib */
This will only compile your program. To compile it and run it you can
create a .BAT file with ED to compile and run your program. Then you would
simply put the .BAT file in remarks instead of the compiler command. For
example:
Create COMPILE.BAT using ED:
tcc myprog.c mylib.lib
PAUSE -- just so you can look at any errors
myprog.exe
then add COMPILE.BAT to the top of your program(line 001:0001):
/* COMPILE.BAT */
(you can substitute COMPILE.BAT to any name you wish. It's used
here merely as an example)
and press F5 to compile AND run your program.
I would suggest putting a PAUSE statement before the filename to run
in the .BAT file before you run it. This way you can look at any ERRORS
or WARNINGS you may have.
SHELL TO DOS - F6
This is your basic run-of-the-mill DOS SHELL. Just type 'EXIT' to go
back to ED. If for some reason you forget that you are SHELLed out of ED and
happen to run ED again, ED will warn you of this, but it will give you the
option of running another copy.
ASCII TABLE - F7
This function display's all 256 ASCII characters. Press PAGE UP or
PAGE DOWN to scroll through them. It shows you the character, its decimal
value, and its hex value.
SHOW DOS SCREEN - F8
This function shows the DOS screen. This comes in handy when you have
COMPILED your program and need to look at the errors that need fixing.
PROGRAMMERS CALCULATOR - F9
The CALCULATOR can do all the basic things that a programmer might need.
It will show the answer to the problem in it's DECIMAL, HEX, and BINARY forms.
To exit the CALCULATOR press <ENTER>.
GOTO LINE NUMBER - F10
This function brings you to the line number that you specify.
THE FILE MENU - ALT+F
KEY | WHAT IT DOES
----------------------------
Alt-F + N | Prompts for save on the current file, and then creates
a blank screen ready for editing
Alt-F + S | Saves the current file
Alt-F + A | Saves the current file AS another name
Alt-F + L | Loads a file from disk. Select the file by using the
UP, DOWN, PAGE UP, PAGE DOWN, and ENTER keys. You can
change the current path by pressing F1
Alt-F + M | This Merges or inserts a file at the cursor
Alt-F + P | This prints the file to your IBM compatible printer. It
prints a .C file with line numbers, and it prints all other
file normally
Alt-F + ESC | Exits you from the file menu
THE SEARCH & REPLACE MENU - ALT+S
KEY | WHAT IT DOES
----------------------------
Alt-S + F | Finds a word (same as F2)
Alt-S + N | Finds the next one (same as F3)
Alt-S + R | Replaces a word. Asks for prompt on replace and how many
you wish to do.
Alt-S + C | Toggles CASE SENSITIVE MATCH search
Alt-S + W | Toggles WHOLE WORD MATCH search
Alt-S + ESC | Exits the SEARCH & REPLACE menu
GOTO A FUNCTION - CTRL+K
This allows you to jump to a function in your C program. This comes in
handy if you have errors in one function and you are in another. Just select
the function either by using the ARROW keys or by the first letter of the
function's name. This function will ONLY work with a file with a .C or .CPP
extension.
ADDITIONAL COMMENTS
Please feel free to pass this to your other friends. Just be sure to
include these files:
ED.EXE
ED.DOC
EDCONFIG.
We would love your support, comments, suggestions, ect...
And if you find any 'BUGS' in ED (which is highly un-likley, but possible)
please write us a letter explaining how and where it happened.
ORDERING INFORMATION
--------------------
New versions of ED are always being made. If you enjoy ED and wish to
be advised of updates please send a check for the amount of $15.00 to:
O.K. Software
Route 9, Box 1368
Lexington, North Carolina 27292
Thanks for your support,
O.K. Software