[squeak-dev] The Trunk: ToolBuilder-Morphic-mt.235.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Aug 7 16:45:34 UTC 2019


Hi Tim,


do you really mean a TextStyle from Graphics, or rather a TextAttribute from Collections-Text, such as TextEmphasis? We probably should merge this conversation with http://forum.world.st/The-Inbox-ToolBuilder-Morphic-ct-234-mcz-tp5101951p5102068.html.

Such a TextSyntaxHighlight style could recently have benefited me quite much when I wrote some dedicated logic for formatting parts of a text for a project documentation:

[cid:a0b12f4c-dbb4-4c93-bf7a-ef143ed652f3]
(The light blue is the argument color in my personal UI theme, which come from a Context instance provided to the styler.)

Just an application case where this could be really useful :)

Best,
Christoph


________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Mittwoch, 7. August 2019 18:29:34
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Trunk: ToolBuilder-Morphic-mt.235.mcz



> On 2019-08-06, at 11:57 PM, Marcel Taeumel <marcel.taeumel at hpi.de> wrote:
>
> Hi Tim,
>
> that's a good idea. Yet, such a mechanism would be decoupled from the automatic styling pluggable text morphs can provide.

Well, nothing need stop styling being the default for certain varieties of text morph; it wouldn't have to be available only through a text style. But then again, consider this aspect - if the styling were done via a text style and that style were the default for code related textmorphs, then turning off styling would be merely a matter of changing the choice of default style.

I'm not going to claim to have a precise plan how one might do shout styling via a textstyle but since the basics are pretty much 'take this string and render it via a process of applying font & colour attributes derived from the list in the style' why couldn't it work to insert 'according to the parser rules' at the end. I mean, add a few more tweaks and we could have some interesting formatting markers in the source. Sort of ST markdown.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Every bug you find is the last one.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190807/ab5fe8ae/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 164759 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190807/ab5fe8ae/attachment-0001.png>


More information about the Squeak-dev mailing list