[squeak-dev] "Shouting" softly
Ted Kaehler
Ted at vpri.org
Mon Feb 25 05:45:24 UTC 2013
Chris and Folks,
I chose a slightly different path for taming Shout. Here is
how to change the colors that Shout uses to put syntax-related colors
on code in the browser.
There is a preference called "subduedSyntaxHighlights". It defaults
to true, and makes your comment text be blue-green or teal. If you
have set it to false, comments in code are bright green. You don't
need to change preference.
If comments are blue-green or teal, find the color-setting method by executing:
(MessageSet openMessageList: {'SHTextStylerST80 class
subduedStyleTable'} name: 'Modify Shout Colors')
If comments are bright green, colors are controlled by this other method.
(MessageSet openMessageList: {'SHTextStylerST80 class
defaultStyleTable'} name: 'Modify Shout Colors')
The method contains a table that specifies the color for each
syntactic element. The table begins:
(default black )
(invalid red )
(excessCode red )
Just change lines 2 and 3 to a less jarring color, such as black.
(default black )
(invalid (red lighter) )
(excessCode black )
Accept and then execute:
SHTextStylerST80 initialize.
Then browse code.
(Note a small confusion. The non-default setting of
subduedSyntaxHighlights calls the "default" method,
defaultStyleTable. The default setting calls subduedStyleTable.)
--Ted.
--
Ted Kaehler
"400 years of scientific enlightenment are being undone by TV shows
on crop circles, ancient astronauts, and haunted buildings."
http://www.vpri.org/html/team_bios/kaehler.html
More information about the Squeak-dev
mailing list
|