Editing Text Overview
On several the Fractal Science Kit fractal generator Application Windows, an editor pane is provided to edit a block of text. The editor pane is a simple text editor with support for standard commands like Undo, Redo, Cut, Copy, Paste, Delete, Select All, Clear All, and Find and Replace... along with a few additional commands useful for editing program instructions including Increase Indent, Decrease Indent, Comment Block, and Uncomment Block.
As with most text editors, you use the mouse to position the cursor or select some text, and then you start typing. The text is inserted at the cursor position and replaces the selected text (if any).
The editor commands are accessed via the context menu and/or a set of key mappings.
The context menu is displayed by right-clicking over the text.
The context menu has the following commands:
Most of these commands can also be accessed using the following key mapping:
The following editing commands are also supported:
If you include a sequence of characters recognized as a hyperlink, it is displayed as an active link, and clicking on the link will attempt to connect to the Internet and view the associated page.
If you want to link to a file on your computer, you can use the file:// tag followed by the full path to the file. You will need to surround the link with the characters < and > to allow the use of spaces in the path. If the file is located in the My Files folder, you can use a relative path rather than a full path for the link.
The text above defines a link to a file named shapes.htm in the folder My Docs under the My Files folder.
As with most editors, you can double-click on a word to select it or triple-click to select the entire line. However, there are a few issues you need to be aware of related to how the underlying control that I use for the editor pane behaves when you double-click on a word.
The first issue is that any spaces following the word are also selected. This is common in many editors but is sometimes problematic.
The second issue relates to what characters delimit a word. The underlying control treats an underscore as a word delimiter but since an underscore can be used as part of an identifier this is inconvenient. For example, double-clicking on the z in the identifier size_x would only select the first 4 characters of the identifier. Worse yet, the underlying control does not treat a caret as a word delimiter but as part of a word so that double-clicking on the z in the expression size^2 would select the ^2 too.
The final issue relates to bug in the underlying control with respect to single quotes. When you double-click on a word followed by a single quote and 1 or more spaces, the control selects the single quote and the trailing spaces rather than the word you double-clicked on!
I have tried to find a way to correct these issues but as yet have not been successful.
Copyright © 2004-2014 Hilbert, LLC