On Apr 21, 2012, at 1:19 PM, Camillo Bruni wrote:
well you could also plug my readline implementation to any text morph and set the a monospace font as default for code :) (that's what I have anyway).
Manually creating a text morph an changing it's font to some fixed-width version is not that hard. And then depending on your needs you would simply edit / change the underlying text (in this case with even my readline implementation)...
I believe you but I seem to need a bit more explicit hand-holding. For example, when I create a new text morph, it winds up on the screen by itself with no enclosing window. Using the code derived from the TextMorph class comment: font := TextFontReference toFont: (StrikeFont familyName: 'Pragmata Pro' size: 16). tMorph := TextMorph new. t1 := 'This is fixed-width' asText addAttribute: font. tMorph contents: t1. tMorph openInHand. It doesn't seem to recognize Pragmata Pro or any other font name I put in, I always get the default font I set in my preferences (which is a system font and works fine). I see there's a FixedFaceFont class, but it looks like a completely different sort of thing. I also don't see how to get started with your Readline implementation. I'm sure I'd like to use it eventually but I want to get something basic working that I can understand first. Thanks again, â Daniel Lyons