Radio UserLand Kick Start: Writing an Outline
This is part of Chapter 8 of the book
Radio UserLand Kick Start by Rogers Cadenhead, published by Sams Publishing
To begin a new outline in Radio, choose the menu command
The outliner functions like a text editor. When you press the keyboard
PC users might run into some confusion because there are two
Figure 8.4. Hoisted items in an outline.
When entering items in an outline on Windows, use the keyboard
Macs avoid this problem by having a
To move the cursor to a different item in an outline, use the four arrow keys.
As items are being entered, they can be moved using four commands of the
An example outline is shown in Figure 8.5.
Figure 8.5. A stock portfolio outline.
On the
Moving an item up or down changes the order of subheads that share a common parent. Moving an item left or right changes the parent of the item.
There are many instances where it isn't possible to move an item in a specified direction, depending on the placement of the item in relation to its parent and other subheads. For example, in Figure 8.5 the item "52 shares at 18.19" can only be moved to the left. It's directly below a parent, making a move to the right impossible, and it has no other subheads, preventing a move up or down. Radio keeps track of this automatically, preserving the structure of an outline by ignoring impossible requests.
When an item is successfully moved, all of its subheads move along with it, even if they are collapsed away from view.
Keyboard shortcuts for each of the move commands are shown in Table 8.1.
Table 8.1: Movement Shortcuts
The outliner can be used as a programmer's editor for UserTalk, Radio's built-in scripting language, and other programming languages.
To support this purpose, an item in an outline can be designated as a comment, a descriptive statement explaining what a script is doing at a particular place in a program. Comments will be ignored when Radio runs a UserTalk script.
The menu command
The icon for a comment is a chevron character ("<<"). The outline in Figure 8.5 includes one comment: "Last update: 01/14/2003".
A comment can have subheads of its own as long as all of them are comments also. Radio handles this automatically when toggling comments -- if an item with three subheads is turned into a comment, all four become comments.
Later, if this item is changed from a comment to a normal item, all of its subheads will become normal items unless they were separately turned into comments at some point.
Tip: When modifying a UserTalk script, Radio developers often put a timestamp in a comment along with a description of the changes that were made on that date. To insert a timestamp containing the current date, time, and your initials in an outline, press
To save an outline, choose the menu command untitled.opml or untitled-2.opml will be used.
Outlines are saved as OPML (Outline Processor Markup Language), a format created by UserLand for the representation of outlines. Files are given the file extension .opml and the MIME type text/x-opml.
Chapter 8:
|
|
|||||||||||||||