Your welcome.

I also just explored and learned this.

I can  also do this.

tt := ThreadSafeTranscript new.
tt openAsMorphLabel: 'My Transcript'.
tt show: 'my content';cr.
tt clear.
tt show: 'my  new content';cr.

Seems to work as what I was originally hoping for.

No syntax highlighting and no quoting as a comment required.

Thought maybe this would be helpful to anyone in like situation.

This is in a Pharo 1.3 image.

Thanks.

Jimmie


On 8/31/2011 12:42 PM, Alexandre Bergel wrote:
Thanks for your help.

Alexandre


On 31 Aug 2011, at 14:15, Jimmie Houchin wrote:

On 8/31/2011 11:04 AM, Alexandre Bergel wrote:
hi!

Is there a way to open a text in a window in Pharo?
Doing: Workspace  openContents: 'hello world'
shows
<Mail Attachment.png>

Is there a way to remove the syntax highlighting?
I have recently been using
ws := Workspace openLabel: 'A Nice Label'.
ws contents: '"', 'my contents', '"'.

ie:  wrapping the contents with doubles quotes which simply make the contents a 
comment in the workspace.

This is what I noticed was being used for the workspaces opened in in new image.

I do wish we had a simple text box to receive such content which was not 
necessarily meant  for syntax highlighting.

I am using Workspace in my situation to provide progress updates on background 
processes which take hours to accomplish their task.

I don't know if any of the recent work towards improving Transcript helps here. 
For me I would want an independent Transcript which I label and control. Not 
the general Transcript.

Hope this helps.

Jimmie

Reply via email to