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