SyntaxHighlighting on 3.0
Helge Horch
Helge.Horch at munich.netsurf.de
Thu Apr 26 07:20:07 UTC 2001
At 23:18 25.04.2001 -0400, Bolot Kerimbaev wrote:
>I've fixed it up a bit so that it works with 3.0/3.1:
>http://fce.cc.gatech.edu/~bolot/squeak/opp/sq31-syntaxHighlighting.12Apr194
>7.cs
Ah, thanks! Mind if I mirror it from my webpage?
One thing that puzzled me however was your change in
Text>>highlightSyntaxIn:, where the last bit reads
...
SyntaxHighlightingParser doSyntaxHighlighting
ifTrue: [...]
ifFalse: [self highlightSyntaxIn: aClass]
That got me in an endless recursion if the Preference was turned off? I've
attached another version of said method, restored to the [self
makeSelectorBoldIn: aClass] code that was there before.
Speaking of Preferences, the second attachment is the definition of a
proper Preference for SyntaxHighlighting, and its use in the parser. (I
had to filein the above patch before it, because the Preference initializes
to false...) I'll repackage all the next weekend, hopefully.
I'm very excited about the HTML generation stubs you put in (that was
actually on my list, but somewhat down, ahem). Is it for a Comanche
command only, or would it be adaptable to the normal HTML "printout"?
Thanks again,
Helge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Text-highlightSyntaxIn.st.gz
Type: application/octet-stream
Size: 393 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010426/a555fa31/Text-highlightSyntaxIn.st.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SyntaxHilitePref.1.cs.gz
Type: application/octet-stream
Size: 512 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010426/a555fa31/SyntaxHilitePref.1.cs.obj
More information about the Squeak-dev
mailing list
|