Compiled code RTF changes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiled code RTF changes

G Krupa-2
All,

I want to change the way compiled code looks.  I don't want comments to be
italicized.  I don't want ANYTHING to be italicized.  Green is fine, but the
italicized version of the font I'm using (a fixed width font made
specifically for developing) looks really crappy when italicized.  It makes
most comments confusing, and editing said comments almost impossible.

So, is there an easy way to do this?  I like everything else, like the
syntax highlighting, etc.  I've poked around a little, but don't feel very
comfortable messing with the development system.  I've crashed Dolphin too
many times doing less tricky things.

The only thing I could think of was tweak the #richText method of
SmalltalkWorkspace (since I think this is used everywhere) (or maybe the
associated View), and somehow remove all italics there.  From what I've
read, RTF isn't terribly complex and I may be able to simply remove the
italics tags.

Any thoughts?  Is there an easier way I'm overlooking in the wee hours of
the night (for me, at least)?

Cheers,

--GK


Reply | Threaded
Open this post in threaded view
|

Re: Compiled code RTF changes

Bill Dargel
G Krupa wrote:
> I don't want comments to be italicized.
> [...]
> So, is there an easy way to do this?  

Evaluate:
     Compiler syntaxColorAt: #Comment put: '\cf4 '.

I do this as part of my script that builds a fresh image from sources. I
found this tidbit in the newsgroup archives, complements of Chris Uppal
/ Ian Bartholomew (not sure who mentioned it first). Thanks guys!

-------------------------------------------
Bill Dargel            [hidden email]
Shoshana Technologies
100 West Joy Road, Ann Arbor, MI 48105  USA


Reply | Threaded
Open this post in threaded view
|

Re: Compiled code RTF changes

Ted Bracht-2
Andy/Blair,

As I understand, D6 will implement a new editor, will that enable this kind
of formatting to become a user preference option?

Thanks,

Ted

"Bill Dargel" <[hidden email]> wrote in message
news:[hidden email]...

> G Krupa wrote:
> > I don't want comments to be italicized.
> > [...]
> > So, is there an easy way to do this?
>
> Evaluate:
>      Compiler syntaxColorAt: #Comment put: '\cf4 '.
>
> I do this as part of my script that builds a fresh image from sources. I
> found this tidbit in the newsgroup archives, complements of Chris Uppal
> / Ian Bartholomew (not sure who mentioned it first). Thanks guys!
>
> -------------------------------------------
> Bill Dargel            [hidden email]
> Shoshana Technologies
> 100 West Joy Road, Ann Arbor, MI 48105  USA


Reply | Threaded
Open this post in threaded view
|

Re: Compiled code RTF changes

Blair McGlashan-2
"Ted Bracht" <[hidden email]> wrote in message
news:[hidden email]...
> Andy/Blair,
>
> As I understand, D6 will implement a new editor, will that enable this
kind
> of formatting to become a user preference option?

That's right. The new editor is Scintilla, and its visual styles are used to
effect syntax colouring on the fly. D6 allows these styles to be configured
easily through user preferences (or by a script of course). You can read
more about the capabilities of Scintilla at http://www.scintilla.org

Regards

Blair