1 the edit program the edit program is a full screen text editor that allows you to: create text...

31
1 The EDIT Program The EDIT Program The The Edit Edit program is a full screen text editor program is a full screen text editor that allows you to: that allows you to: Create text files Create text files Edit an existing text files Edit an existing text files Copy (rename a text file) Copy (rename a text file) Print an Print an ASCII ASCII (text) file (text) file Menu Bar Editing Area Status Bar

Upload: leslie-cunningham

Post on 13-Jan-2016

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

1

The EDIT ProgramThe EDIT ProgramThe The EditEdit program is a full screen text editor that program is a full screen text editor that

allows you to:allows you to:

Create text filesCreate text files Edit an existing text filesEdit an existing text files Copy (rename a text file)Copy (rename a text file) Print an Print an ASCIIASCII (text) file (text) file

Menu Bar

Editing Area

Status Bar

Page 2: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

2

ASCII filesASCII filesStands for Stands for AAmerican merican SStandard tandard CCode for ode for IInformation nformation IInterchange.nterchange.

ASCIIASCII files are usually referred to as files are usually referred to as TextText or or Standard Standard files, files, and contain no formatting characters as in a Microsoft Word and contain no formatting characters as in a Microsoft Word file.file.

They contain data which is line oriented. Each line is a group They contain data which is line oriented. Each line is a group of one or more ASCII characters ending usually with a of one or more ASCII characters ending usually with a carriage returncarriage return and and line feedline feed control character sequence. control character sequence.

The The carriage returncarriage return causes the cursor to be positioned at the causes the cursor to be positioned at the beginning of a screen line or print line and the beginning of a screen line or print line and the line feedline feed causes the cursor to go down one line on the screen or printer.causes the cursor to go down one line on the screen or printer.

Page 3: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

3

ASCII files ASCII files (continued)(continued)

Here is a sample text file:Here is a sample text file:

Pressing the Enter key at the end of a group of characters causes the automatic generation of the carriage return and line feed.Of course, these characters are not usually displayed on the screen.

Page 4: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

4

ASCII files ASCII files (continued)(continued)

Here is how the file is actually stored on the disk:Here is how the file is actually stored on the disk:

Carriage return and line feed characters

This is a hexadecimal display of the characters in the file. Each two hexadecimal numbers represents one byte of memory. For example, the hexadecimal value 41 represents the ASCII character 'A'.

Page 5: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

5

ASCII Character SetASCII Character Set

The first 32 characters of the character set, values 00000000 to00011111, are special control characters and are not shown in the table above.

Page 6: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

6

How to Start EditHow to Start Edit

Open a Open a Command PromptCommand Prompt window. window.

You can start You can start EditEdit two ways: two ways:

Start Start EditEdit without specifying a file name: without specifying a file name: A:\>EditA:\>Edit and press and press <Enter><Enter>

Start Start EditEdit with a file name: with a file name: A:\>Edit File.txtA:\>Edit File.txt and press and press <Enter><Enter>

Page 7: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

7

Create a FileCreate a FileMake the root directory of drive Make the root directory of drive A:A: current currentEnter: Enter: A:\>A:\>edit File1.txtedit File1.txtThe following should appear:The following should appear:

Note that the full file specification appears at the top of the editingwindow.

Page 8: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

8

Create a FileCreate a FileKey in the following lines (press Key in the following lines (press <enter><enter> to go to to go to

the next line):the next line):AAAAAAAAAAAAAAAAAAAAAAAAAA

BBBBBBBBBBBBBBBBBBBBBBBBBB

CCCCCCCCCCCCCCCCCCCCCCCCCC

DDDDDDDDDDDDDDDDDDDDDDDDDD

EEEEEEEEEEEEEEEEEEEEEEEEEE

FFFFFFFFFFFFFFFFFFFFFFFFFF

GGGGGGGGGGGGGGGGGGGGGGGGGG

HHHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIII

Page 9: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

9

Create a FileCreate a FileYour screen should now look as follows:Your screen should now look as follows:

To save the file to disk, open the To save the file to disk, open the FileFile dropdown dropdown menu by clicking the mouse on menu by clicking the mouse on FileFile or hold down or hold down the the AltAlt key and press key and press FF. .

Page 10: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

10

Create a FileCreate a FileYour screen should now look as follows:Your screen should now look as follows:

Choose the Choose the SaveSave option by clicking the mouse on option by clicking the mouse on SaveSave or hold down the or hold down the AltAlt key and press key and press SS. .

Page 11: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

11

File Dropdown MenuFile Dropdown Menu NNewew - create a new file- create a new file OOpen…pen… - find and open another file- find and open another file SSaveave - save the current file- save the current file Save Save AAs…s… - save the current file with a new file name- save the current file with a new file name CCloselose - close the file (file will be saved if necessary)- close the file (file will be saved if necessary) PPrint…rint… - print the file- print the file EExxitit - exit the editor (file will be saved if necessary)- exit the editor (file will be saved if necessary)

Page 12: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

12

New OptionNew OptionSelect Select NewNew from the dropdown from the dropdown FileFile menu (or press menu (or press altalt,, F F, then select , then select NNew). ew). The following should The following should appear:appear:

The file name will be The file name will be UNTITLED#UNTITLED#

Page 13: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

13

OOpen…pen… Option OptionSelect Select OpenOpen from the dropdown from the dropdown FileFile menu (or press menu (or press altalt,, F F, then select , then select OOpen). pen). The following should appear:The following should appear:

You can use the You can use the TabTab key or the key or the mousemouse to move to move around to the various panes in the dialog box. Select around to the various panes in the dialog box. Select the the DriveDrive, , DirectoryDirectory, and , and FileFile you need then click the you need then click the OKOK button. button.

Page 14: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

14

SSaveave Option OptionSelect Select SaveSave from the dropdown from the dropdown FileFile menu (or press menu (or press altalt,, FF, then select , then select SaveSave). ). The following should appear:The following should appear:

If the file has a name (If the file has a name (not UNTITLED#not UNTITLED#) it is saved. ) it is saved. OtherwiseOtherwise

you can select you can select drive/directory/drive/directory/new-namenew-name for the file. for the file.

Page 15: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

15

SaveSaveAAs…s… Option OptionSelect Select SaveAs…SaveAs… from the dropdown from the dropdown FileFile menu (or menu (or press press altalt,, F F, then select , then select SaveAs…SaveAs…). ). The following The following should appear:should appear:

The dialog box allows you to name your file and place The dialog box allows you to name your file and place the file in a specified drive/directory or on the the file in a specified drive/directory or on the File File Name [………..……]Name [………..……] line you can key in the line you can key in the path and path and file namefile name..

Page 16: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

16

CClose lose OptionOptionSelect Select Close Close from the dropdown from the dropdown FileFile menu (or press menu (or press altalt,, F F, then select , then select CloseClose)). . The following should appear:The following should appear:

If the file has not been previously saved or needs to be If the file has not been previously saved or needs to be saved, a dialog box opens allowing you to save it or not.saved, a dialog box opens allowing you to save it or not.

Page 17: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

17

PPrint…rint… OptionOption

Select Select PrintPrint from the dropdown from the dropdown FileFile menu (or menu (or press press altalt,, F F, then select , then select PrintPrint). ).

You can choose to print only the selected lines or You can choose to print only the selected lines or the entire file.the entire file.

Page 18: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

18

EExxitit OptionOption

Select Select ExitExit from the dropdown from the dropdown FileFile menu (or press menu (or press altalt,, F F, then select , then select ExitExit). ). Edit is terminated giving Edit is terminated giving control back to DOS.control back to DOS.

If the file needs to saved, you will be asked to save If the file needs to saved, you will be asked to save the file or not.the file or not.

Page 19: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

19

EDIT optionEDIT option

The The EDITEDIT options work on selected options work on selected regionsregions on on the screen.the screen.

Select lines (regions) either with the mouse or a Select lines (regions) either with the mouse or a combination of shift key and cursor.combination of shift key and cursor.

clipboardclipboard - the clipboard is an area where data - the clipboard is an area where data from a region is temporally storedfrom a region is temporally stored

copycopy & & cutcut put data into the clipboard put data into the clipboard

PastePaste copies the clipboard data to the screen copies the clipboard data to the screen

Page 20: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

20

EDIT option - CUTEDIT option - CUT Select lines (regions) either with the mouse Select lines (regions) either with the mouse

or a combination of shift key and cursoror a combination of shift key and cursor Press Press altalt EE CutCut removes the region (removes the region (selected linesselected lines) and ) and

puts the data in the ‘puts the data in the ‘clipboardclipboard’ area’ area if something is already in the clipboard, if something is already in the clipboard,

that data is lostthat data is lost when this new data is when this new data is placed thereplaced there

Page 21: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

21

EDIT option - COPYEDIT option - COPY Select lines (regions) either with the mouse Select lines (regions) either with the mouse

or a combination of shift key and cursoror a combination of shift key and cursor Press Press altalt EE CopyCopy copies the region (selected lines) and puts copies the region (selected lines) and puts

the data in the ‘the data in the ‘clipboardclipboard’ area’ area if something is already in the clipboard, if something is already in the clipboard,

that data is lostthat data is lost when this new data is when this new data is placed thereplaced there

Page 22: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

22

EDIT option - PASTEEDIT option - PASTE Press Press altalt EE PastePaste pastes the data in the pastes the data in the clipboardclipboard

area at the area at the position of the cursorposition of the cursor data data remainsremains in the clipboard area in the clipboard area therefore, you can ‘therefore, you can ‘pastepaste’ the ’ the

clipboard clipboard multiple timesmultiple times

Page 23: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

23

EDIT option - CLEAREDIT option - CLEAR

Select lines (regions) either with the Select lines (regions) either with the mouse or a combination of shift key mouse or a combination of shift key and cursorand cursor

Press Press altalt EE ClearClear clears the selected area (removes the clears the selected area (removes the

data from the screen)data from the screen) does not copydoes not copy data into the clipboard data into the clipboard

Page 24: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

24

SEARCH optionSEARCH option The The SEARCHSEARCH option allows you to option allows you to findfind and/or and/or replacereplace strings of data. strings of data.

Use the Use the SEARCHSEARCH by keying by keying alt alt SSearch earch and and selecting one of the following options from the selecting one of the following options from the dropdown menu:dropdown menu:

FFind…ind… Repeat Repeat LLast Findast Find RReplace…eplace…

Page 25: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

25

Search option – Find…Search option – Find…Press Press altalt,, SS,, F Find… ind… to display the Find to display the Find Dialog Dialog Box.Box.

Enter the data you want to search for.Enter the data you want to search for.

The search starts from the The search starts from the current position of current position of the cursorthe cursor..

Use the Use the Repeat Repeat LLast Findast Find option or press option or press F3F3 to to repeat the search.repeat the search.

Page 26: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

26

Search option - Repeat Last Search option - Repeat Last FindFind

Press Press altalt,, SS,, FFindind a pop-up box appears (a pop-up box appears (Dialog Dialog

BoxBox)) enter an enter an LL ((repeat Last findrepeat Last find)) the search will continue from the the search will continue from the

current position of the cursorcurrent position of the cursor

Page 27: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

27

Search option - ReplaceSearch option - Replace Press Press altalt,, S S, , enter an enter an RReplaceeplace find whatfind what [enter select data] [enter select data] replace withreplace with [enter new data [enter new data

{changed to}]{changed to}] RReplace - replaces data onceeplace - replaces data once Replace Replace AAll - replaces all instances ll - replaces all instances

Page 28: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

28

View optionView option

First, create First, create 3~43~4 ‘ ‘newnew’ windows (files)’ windows (files) Press Press altalt, , VViewiew a pop-up box appearsa pop-up box appears you should see multiple you should see multiple untitleduntitled file file

namesnames you may select the file you wish to edityou may select the file you wish to edit by keying in the corresponding file by keying in the corresponding file

numbernumber

Page 29: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

29

VView option (continued)iew option (continued) the the SSplit Windowplit Window gives you 2 windows gives you 2 windows F6 F6 togglestoggles between windows between windows initially, both windows are editing the initially, both windows are editing the

same filesame file you may have 2 different files in 2 you may have 2 different files in 2

different windows by…..different windows by….. F6 F6 to toggleto toggle ALTALT, , VV, corresponding window , corresponding window

numbernumber

Page 30: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

30

VView option iew option (continued)(continued)

the the Size WindowSize Window allows you to allows you to modify the sizes of the 2 windowsmodify the sizes of the 2 windows

altalt, , VV, , II (to get the size option)(to get the size option) use the up and down arrows to vary use the up and down arrows to vary

the size of the pair of windowsthe size of the pair of windows Close window optionClose window option toggle to the window you want to toggle to the window you want to

closeclose altalt, , VV, , CC closes the current windowcloses the current window

Page 31: 1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit

31

Options optionOptions option altalt,, OO brings a drop down boxbrings a drop down box

showing…showing… Settings…Settings…

for for TTabsabs and the and the PPrinterrinter port port TTabsabs - set number of columns between - set number of columns between

tabstabs PPrinter portrinter port - select port - select port

Colors… Colors… - you can change the color of - you can change the color of FForegroundoreground BBackgroundackground selected selected IItemstems such as file bar, menu bar such as file bar, menu bar