added #colorizeAllWith:
authorClaus Gittinger <cg@exept.de>
Wed, 21 Nov 2001 09:57:03 +0100
changeset 6228 3b39832651c9
parent 6227 09f773ce40d9
child 6229 e79f4aeff134
added #colorizeAllWith:
CharacterArray.st
--- a/CharacterArray.st	Tue Nov 20 23:16:59 2001 +0100
+++ b/CharacterArray.st	Wed Nov 21 09:57:03 2001 +0100
@@ -3879,6 +3879,15 @@
     "
 !
 
+colorizeAllWith:aColor
+    ^ self asText colorizeAllWith:aColor
+
+    "
+     Transcript showCR:('hello' colorizeAllWith:Color red)
+     Transcript showCR:('world' colorizeAllWith:Color green darkened)
+    "
+!
+
 emphasis
     "return the emphasis.
      Since characterArrays do not hold any emphasis information,
@@ -6000,6 +6009,6 @@
 !CharacterArray class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.215 2001-11-15 08:52:43 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.216 2001-11-21 08:57:03 cg Exp $'
 ! !
 CharacterArray initialize!