Copyright: © 1996 MicroSim Corporation
Citation: © 1996 Copyright MicroSim Corporation


Contents

Welcome to the MicroSim Text Editor help. The following help topics are available.

Overview

Opening, Closing and Saving Files

Editing a File

Searching a File

Printing a File

Setting Options

Special Support for PLSyn Files

For help on Help, press F1


Overview

The MicroSim Text Editor allows you to edit and view text files from within MicroSim applications. It has the following features:

•	Drag and drop editing

•	Search and replace

•	Support for large files (up to 16MB)

•	Context sensitive help for PLSyn input files

•	Language templates for common DSL constructs

See also

Special Support for PLSyn Files


Opening, Closing and Saving Files
Opening, Closing, and Saving Files

Opening, closing, saving, and printing files in Text Editor is similar to all Windows programs.

To open a file

To close a file

To save a file


To open a file

1	Do one of the following:

•	On the tool bar, click the Open File icon.

•	From the File menu, choose Open.

2	Select the name of the file from the list. To use a file from a different directory or drive, select it from the list.

3	Click OK.


To close a file

•	From the File menu, choose Close.


To save a file

To save the file with the same name

•	On the toolbar, click the Save icon.

To save the file with a different name

1	From the File menu, choose Save As.

2	In the Save As dialog box, type a name with which to save the file.

3	From the Save As Type list, select a type.

4	Click OK.


Editing a File

Editing a file in the MicroSim Text Editor is like editing a file in other Windows ASCII text editors.

To copy text

To paste text

To clear text

To cut text

To select all the text

To insert an entire file


To copy text

1	Select the text you want to copy.

2	Do one of the following:

•	On the toolbar, click the Copy icon.

•	From the Edit menu, choose Copy.

A copy of the selected text is placed in the clipboard.


To paste text

1	Copy the text you want to paste.

2	Click the new location of the text.

3	Do one of the following:

•	On the toolbar, click the Paste icon.

•	From the Edit menu, choose Paste.

4	The copied text is pasted.


To clear text

1	Select the text you want to clear.

2	From the Edit menu, choose Clear.

The text is removed from the file. You cannot paste this text.


To cut text

1	Select the text you want to cut.

2	Do one of the following:

•	On the toolbar, click the Cut icon.

•	From the Edit menu, choose Cut.

The text is deleted from the file and is placed in the clipboard. You can paste this text.


To select all the text

1	Click in the file.

2	From the Edit menu, choose Select All.


To insert an entire file

1	Click the place in the current file you want to insert the new file.

2	From the Insert menu, choose File.

3	In the Insert dialog box, type or select the name of the file you want to insert.

4	Click OK.

5	The file is inserted in the specified location.


Searching a File

You can search a file to find specific text items. You can also replace specified text with other text. You can also go to a specific line of text.

To search text

To replace text

To go to a line of text


To search text

1	Do one of the following:

•	On the toolbar, click the Search icon.

•	From the Search menu, choose Find.

2	In the Find dialog box, type the text to find.

•	To match the entire word, select the Match Entire Word check box.

•	To match the case, select the Match Case check box.

3	Click Find Next.

4	The specified text is searched for.

When the text is found, it is selected on the screen.

5	To find the next instance of the text, click Find Next or press F3.


To replace text

1	From the Search menu, choose Replace.

2	In the Replace dialog box, type the text to find in the Find What box.

3	In the Replace box, type the text with which to replace the found text.

•	To match the entire word, select the Match Entire Word check box.

•	To match the case, select the Match Case check box.

4	Do one of the following:

•	To find the next instance, click Find Next.

•	To find the next instance and automatically replace it, click Replace.

•	To find the all instances and automatically replace them, click Replace All.


To go to a line of text

1	From the Search menu, choose Goto Line.

2	In the Goto dialog box, type the line number to which you want to move.

3	Click OK.


Printing a File

In addition to printing a file, you can preview it to be certain it looks the way you want it to before you print.

To preview a file

To print a file


To preview a file

1	From the File menu, choose Print Preview.

2	In the Print Preview window, you can print, view multiple pages, browse through the page, zoom in or out, and close the preview.

•	To print the file, click the Print button. Make any changes in the Print dialog box and click OK.

•	To view the previous or next page, click the Previous or Next buttons. If the document does not have a previous or next page, these button are not available.

•	To view multiple pages, click the Two Page button. If you are viewing a single page document, the Two Page button is not available.

•	To zoom in or out, click the Zoom In or the Zoom Out button. To repeat the zoom click the button again.

3	To close the window, click the Close button.


To print a file

1	From the File menu, choose Print.

2	In the Print dialog box, make any necessary changes.

3	Click OK.


Setting Options

The toolbar and status bar give you easy access to common tasks in MicroSim Text Editor. You can choose to have them appear on the screen or hide them.

You can also set the default font. Once you have set the default font, any text you type or import appears in the default font.

To display the toolbar

•	If the Toolbar is not showing, choose Toolbar from the View menu.

To display the status bar

•	If the Status Bar is not showing, choose Status Bar from the View menu.

To set the default font

1	From the View menu, choose Font. The Font dialog box appears.

2	From the Font list, select a font.

3	From the Font Style list, select a font style, if available for your selection.

4	From the Size list, select a font size.

5	Click OK.


Special Support for PLSyn Files

MicroSim Text Editor has additional features to help you while editing .DSL files and files with a .PI extension for MicroSim PLSyn.

You can insert DSL language templates, which are essentially blank DSL constructs. Supply names and contents as appropriate.

DSL language templates files must have a .DSL extension.

In addition, you can get context sensitive on-line help for DSL and .PI file constructs.

To insert language templates

To get context-sensitive help


To insert language templates

1	From the Insert menu, choose DSL Template.

2	Select one of the DSL constructs listed.

3	Click Insert.

4	Supply names for any fields shown in lower-case.

5	Fill in the construct as necessary.


To get context-sensitive help

1	Position the cursor in, or select, a keyword.

2	Press F1, or click right mouse button and select Help from the popup menu.

3	If on-line help is available for the keyword, help will appear.


Find dialog box


Font dialog box


Go To dialog box


Insert dialog box


Main Screen


Replace dialog box


Toolbar


Print Preview window


Copy icon


Paste icon


Cut icon


Search icon


Open File icon


Save icon