| |
TextAttribute
category: Collections-Text
superclass: Object
subclasses: TextAction TextKern TextAnchor TextEmphasis TextIndent TextColor TextFontChange TextMessageLink
Tells a piece of text to be a certain way.
Select text, press Command-6, choose a attribute. If selected text is of the form
Hi There<Smalltalk beep>
the part in angle brackets is saved for action, and the Hi There appears in the paragraph. If selection has no angle brackets, use the whole thing as both the text and the action.
TextDoIt -- eval as a Smalltalk expression (the part in angle brackets)
TextLink -- Show a method, class comment, class hierarchy, or class defintion.
<Point extent:>, <Point Comment>, <Point Hierarchy>, or <Point Defintion> are what you type.
TextURL -- Show the web page. <www.disney.com>
These attributes of text need to be stored on the disk in a regular file-out. It is done in this form: (ascii 2)<!do Smalltalk beep(ascii 3)>Hi There(ascii 3)<!>
(ascii 2)<!li Point extent:(ascii 3)>Click here to see the extent: method(ascii 3)<!>
The brackets are for people to see in fileOuts. The wierd ascii are for the scanner to pick up easily. See RunArray class scanFrom: where decoding is done.




|
|