source: trunk/dll/ipf/editor.ipf@ 1569

Last change on this file since 1569 was 1419, checked in by Gregg Young, 17 years ago

Use &*Key/Button. to replace all instances of Ctrl, Shift, Okay and Cancel formatted string to improve formatting consistency; monor help file cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.2 KB
Line 
1:h1 res=99300 name=PANEL_NEWVIEWER.Internal Viewer
2:i1 id=aboutNewViewer.Internal Viewer
3
4:artwork name='..\..\bitmaps\view.bmp' align=center.
5:p.
6The internal viewer is used to view files unless you have an external
7viewing program defined in the internal Settings notebook's :link
8reftype=hd res=92200.Viewers page:elink., or the :hp2.Fast internal
9viewer:ehp2. checkbox :hp1.off:ehp1.. This viewer loads and displays a
10one megabyte text file in less than two seconds on a 486/66. The :link
11reftype=hd res=93900."old" viewer:elink. loads large text files
12considerably more slowly, but you might want to use it anyway; your
13choice.
14:p.
15Both :link reftype=hd res=98800.hex:elink. and ASCII (plain text)
16display modes are supported, and a variety of text sizes. These
17controls are under the :hp1.View:ehp1. pulldown submenu.
18:p.
19Selected lines are displayed in reverse video (white text on a black
20background). The current line has ">" pointing at it in the left
21margin. Single selections and swipe selections are supported, as well
22as select and deselect all (under the :hp1.Select:ehp1. pulldown
23submenu) and select/deselect all "found" lines (see :hp1.Search:ehp1.
24below). Keyboard selection is performed with the spacebar, or you can
25hold down the &ShiftKey.
26key while moving the cursored selection with the
27:color fc=default bc=palegray.arrow:color fc=default bc=default. keys. Discontiguous lines can be selected.
28:p.
29If you double-click a line in the viewer window, a listbox appears above
30the text containing that line. Select (single-click) the line in the
31listbox and the viewer window will scroll to that line -- a sort of
32instant bookmarking facility. To remove a line from this bookmark
33listbox, double-click it in the listbox. See the :link reftype=hd
34res=97600.FM/2 window layouts:elink. topic for a picture to help you
35understand this one -- or just try it.
36:p.
37The :hp1.Clipboard:ehp1. pulldown submenu allows you to save selected
38lines to the clipboard or a file. :hp7.Warning&colon.:ehp7. Warp
39appears to have a 64K limit to the size of text that can be placed in
40the clipboard. You can also save lines that you've double-clicked into
41the bookmark listbox. When you write lines to a file, you append to the
42file (if it already exists).
43:p.
44When you search for text in the file, you can search for more than one
45"phrase" at a time. Each line you fill into the MLE on the
46:hp1.Search->Find text:ehp1. dialog is a separate search string. You
47can also search case sensitively (i.e. 'A' doesn't match 'a'), translate
48C-like :link reftype=hd res=99500.\-encoded characters:elink. (\r = a
49carriage return, for example -- useful when searching binary files),
50and/or select lines as they're found by checking the appropriate
51checkboxes on the Find First dialog. All matching lines are displayed in
52red. The :hp1.Search->Next found line:ehp1. command moves to the next
53highlighted line in the file (from the current position), and
54:hp1.Search->Previous found line:ehp1. moves to the previous highlighted
55line. Colors are configurable.
56:p.
57If you're looking for more powerful viewing software, you might be
58interested in Michael Schacter's :hp1.Hyperview PM:ehp1. shareware
59program. Now orphan ware it can still be found online. You can
60easily set Hyperview up to be used automatically by FM/2 using the :link
61reftype=hd res=92200.Viewers page:elink. of the internal Settings
62notebook.
63
64:h2 res=93900 name=PANEL_EDITOR.Internal Viewer/Editor
65:i1 id=aboutEditor.Internal Viewer/Editor
66
67:artwork name='..\..\bitmaps\edit.bmp' align=center.
68:artwork name='..\..\bitmaps\view.bmp' align=center.
69:p.
70The internal viewer/editor is an extremely simplistic MLE window. It is
71:hp2.strongly:ehp2. recommended that you replace it with a better one
72via the :link reftype=hd res=94600.Settings Notebook:elink.'s :hp1.:link
73reftype=hd res=92200.Viewers page:elink.:ehp1.. The reasons are
74simple&colon. a product designed specifically and exclusively for
75editing will generally do a better job, and MLEs tend to be sluggish
76when loading anything larger than about 58K.
77:p.
78Suggestions&colon. EPM (which comes with OS/2), There are other editors
79available.
80:p.
81There's :link reftype=hd res=99300.another, faster internal viewer (no
82editor):elink. which is used as the default for viewing in FM/2.
83:p.
84The internal viewer/editor creates a window for each file being viewed/
85edited. The :link reftype=hd res=91100.Windows->Dialog:elink. dialog
86can be used to quickly close several windows at once or find a
87particular window and bring it to the front.
88:p.
89:hp7.Note:ehp7. that when saving files the editor formats the file so
90that it appears as it does in the MLE. The appearance of a file can be
91different in the MLE or in the created disk file depending on various
92settings under the editor's :hp1.Config->Format Control:ehp1., notably
93Wrap. :hp8.Be sure you have these settings right for the way you want
94the resultant file to look.:ehp8.
95:p.
96When the viewer/editor is in readonly (viewing) mode, several menu items
97are disabled to prevent you from changing the file by accident.
98:p.
99See also&colon.
100.br
101:link reftype=hd res=96500.Codepages:elink.
102.br
103:link reftype=hd res=98800.Hex dumps:elink.
104
105:h2 res=96500 name=PANEL_CODEPAGE.Codepages
106:i1 id=aboutCodePage.Codepages
107
108FM/2 will allow you to change the codepage (character set) in use in the
109internal viewer by selecting a codepage from the listbox. The codepage
110must be one of those supported in your CONFIG.SYS (see :link
111reftype=launch object='CMD.EXE' data='/C HELP CODEPAGE'.CODEPAGE:elink.
112in the online OS/2 command reference) or codepage 1004.
113
114:h2 res=98800 name=PANEL_HEXDUMPS.Hex Dumps
115:i1 id=aboutHexDumps.Hex Dumps
116
117Hex dumps show two hexadecimal digits (0-9 and a-f represent 0 to 15
118decimal in hexadecimal (base 16) representation) for each byte of data
119followed by the actual data (some data may be unrepresentable in the
120current control and therefore displayed as a period)&colon..
121:p.
122:xmp.
1230000 0a 0d 46 4d 2f 32 0a 0d ..FM/2..
124:exmp.
125.br
126This is a common method for representing binary data (as opposed to text,
127or ASCII, data) for human viewing.
128
129:h2 res=99500 name=PANEL_CENCODING.C-style \encoding
130:i1 id=aboutEncoding.C-style \encoding
131
132In many areas, FM/2 allows you to use C-style backslash encoding (or
133more properly "escaping") to give constants you normally couldn't enter
134into an entry field or MLE. There are some differences from standard
135C escaping, so pay attention.
136:p.
137The following escapes are permissible&colon.
138.br
139:parml compact tsize=8 break=none.
140:pt.\\
141:pd.single backslash character
142:pt.\r
143:pd.carriage return (ASCII 13)
144:pt.\n
145:pd.linefeed (ASCII 10)
146:pt.\t
147:pd.tab (ASCII 9)
148:pt.\b
149:pd.backspace (ASCII 8)
150:pt.\a
151:pd.bell (ASCII 7)
152:pt.\f
153:pd.formfeed (ASCII 12)
154:pt.\'
155:pd.'
156:pt.\"
157:pd."
158:pt.\27
159:pd.escape character (ASCII 27; this is decimal encoding)
160:pt.\x1b
161:pd.escape character (ASCII 27; this is hexadecimal encoding)
162:eparml.
163:p.
164Therefore, "This\x20is\32a test of \\FM2\\SETENV.\r\n"
165.br
166becomes "This is a test of \FM2\SETENV." (followed by a carriage return and linefeed).
167:p.
168A :link reftype=hd res=98800.hex dump:elink. of the above after
169conversion&colon.
170:xmp.
17100000000 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6f This is a test o
17200000010 66 20 5c 46 4d 32 5c 53 45 54 45 4e 56 2e 0d 0a f \FM2\SETENV...
173:exmp.
Note: See TracBrowser for help on using the repository browser.