[squeak-dev] Preferences ignoreStyleIfOnlyBold

tim Rowledge tim at rowledge.org
Tue Dec 31 20:15:03 UTC 2013


On 31-12-2013, at 11:54 AM, Colin Putney <colin at wiresong.com> wrote:
> Yeah, this preference isn't quite right for my purposes. The behaviour I want is that Shout does syntax highlighting for me, but the text is otherwise treated as unstyled. If I cut it, the clipboard has unstyled text, if I paste styled text, the styles are ignored and Shout restyles it according to syntax. Unstyled text gets stored in the changes file and Monticello. 
> 
> The problem I have now is that if I cut Shout-styled text and paste it into a browser, I get a dialog asking me if I want styled text. The answer is always no, so I'd rather not be asked about it every time. 

Yeah, pretty much how I’d put it. Code shouldn’t be styled text in general - if Shout wants to do some style for *rendering purposes* that’s tolerable but this isn’t a word processor. I’d say that copy from a code view should copy plain text and if you paste it into a styled wordprocessor view it should be plain. Pasting into a code view, even from a styled wordprocessor view  should paste in plain text (that may get prettied by Shout). 

There’s one case where style is appropriate for code, and that is in a system where the code is intermingled with the spec/design/description/commentary. Such a style would be to mark it for the attention of the compiler/tools.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful Latin Phrases:- Fac ut gaudeam = Make my day.




More information about the Squeak-dev mailing list