Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Best colors for sintax highlight

12 views
Skip to first unread message

Junior/RO

unread,
Feb 18, 2006, 3:14:31 PM2/18/06
to
I have been testing some colors combinations for sintax highligth. After many tries, my personal preferences are:

font.name = Bitstream Vera Sans Mono
font.size = 10

fonts use the ClearType effect.

some screenshots:

editing SysUtils.pas
http://static.flickr.com/27/101305741_aa9ad98bde_o.png

editing Classes.pas
http://static.flickr.com/24/101305742_63bf2029ab_o.png

edit some Ruby on Rails code:
http://static.flickr.com/42/101305743_e46b21bf18_o.png


--
Não tá morto quem luta e quem peleia.

Junior/RO

Rudy Velthuis [TeamB]

unread,
Feb 18, 2006, 3:22:16 PM2/18/06
to
At 21:14:31, 18.02.2006, Junior/RO wrote:

> some screenshots:

I prefer different colours, and actually, also a different font. <g>

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"When I told the people of Northern Ireland that I was an atheist, a
woman in the audience stood up and said, 'Yes, but is it the God of
the Catholics or the God of the Protestants in whom you don't
believe?" -- Quentin Crisp.

Junior/RO

unread,
Feb 18, 2006, 3:26:48 PM2/18/06
to
Rudy Velthuis [TeamB] escreveu:

> I prefer different colours, and actually, also a different font. <g>

I'm looking for different options. Can you post a screenshot?

Tiger

unread,
Feb 18, 2006, 4:47:44 PM2/18/06
to
Looks very good. May I know where to get that font?

Tiger

"Junior/RO" <jr_so...@yahoo.com.br> wrote in message
news:43f7...@newsgroups.borland.com...

Tiger

unread,
Feb 18, 2006, 5:00:35 PM2/18/06
to
Never mind. Got it.

Thanks

"Tiger" <ti...@rogers.com> wrote in message

Rudy Velthuis [TeamB]

unread,
Feb 18, 2006, 3:56:32 PM2/18/06
to
At 21:26:48, 18.02.2006, Junior/RO wrote:

> Rudy Velthuis [TeamB] escreveu:
>
> > I prefer different colours, and actually, also a different font. <g>
>
> I'm looking for different options. Can you post a screenshot?

Yes.

http://rvelthuis.de/images/bds2006_screenshot.png

But don't you think you should simply find out what _you_ like best? Just
try one of the standard settings and go from there. That is what I have
done years ago. Only the event of more than 16 colours made me revise
that a bit (but only a bit).

IOW, this is so much dependent on personal preferences, that it is
impossible to give useful advice.

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"A committee is a group of people who individually can do nothing
but together can decide that nothing can be done." -- Fred Allen.

Junior/RO

unread,
Feb 18, 2006, 4:03:28 PM2/18/06
to
Rudy Velthuis [TeamB] escreveu:

> But don't you think you should simply find out what you like best?

I agree. But in the recent days, the white background hurt my yes.

Rudy Velthuis [TeamB]

unread,
Feb 18, 2006, 3:58:07 PM2/18/06
to
At 22:47:44, 18.02.2006, Tiger wrote:

> Looks very good. May I know where to get that font?

http://www.dafont.com/font.php?file=bitstream_vera_mono

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"In science one tries to tell people, in such a way as to be understood
by
everyone, something that no one ever knew before. But in poetry, it's the
exact
opposite."
- Paul Dirac (1902-1984)

Rudy Velthuis [TeamB]

unread,
Feb 18, 2006, 4:02:10 PM2/18/06
to
At 21:59:27, 18.02.2006, Junior/RO wrote:

> Windows Registry Editor Version 5.00

<snip more than 200 lines>

It would have made more sense to post this long text to
borland.public.attachments as a zip file, IMO.

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"A man can't be too careful in the choice of his enemies."
- Oscar Wilde (1854-1900)

Junior/RO

unread,
Feb 18, 2006, 3:59:27 PM2/18/06
to
Tiger escreveu:

> Looks very good. May I know where to get that font?

Bitstream's Vera Fonts are freeware.

http://www.gnome.org/fonts/

If you want give a try, I have exported the D7\Editor\Highlight key of registry:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight]

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Assembler]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clLime"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Attribute Names]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clWhite"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Attribute Values]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clYellow"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Character]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clNavy"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Comment]
"Bold"="False"
"Italic"="True"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$00DA5AB0"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Disabled break]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clRed"
"Background Color New"="clLime"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Enabled break]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clWhite"
"Background Color New"="clRed"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Error line]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clWhite"
"Background Color New"="clMaroon"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Execution point]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clWhite"
"Background Color New"="clBlue"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Float]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$009F9FCE"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Hex]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$009F9FCE"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Hot Link]
"Bold"="False"
"Italic"="False"
"Underline"="True"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clYellow"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Identifier]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clMedGray"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Illegal Char]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clRed"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Invalid break]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clLime"
"Background Color New"="clOlive"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Marked block]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clBlack"
"Background Color New"="clWhite"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Number]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$009F9FCE"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Octal]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clFuchsia"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Plain text]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clAqua"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Preprocessor]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$002975CE"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Reserved word]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$00D9A05B"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Right margin]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clSilver"
"Background Color New"="clWhite"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Scripts]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clGreen"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Search match]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clBlue"
"Background Color New"="clTeal"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\String]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="$0000AA00"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Symbol]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clSilver"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Tags]
"Bold"="True"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clAqua"
"Background Color New"="clBlack"

[HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor\Highlight\Whitespace]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
"Foreground Color New"="clSilver"
"Background Color New"="clBlack"

Junior/RO

unread,
Feb 18, 2006, 4:13:06 PM2/18/06
to
Rudy Velthuis [TeamB] escreveu:

> It would have made more sense to post this long text to
> borland.public.attachments as a zip file, IMO.

You are right. I did not think about b.p.attachments. Sorry about that.

Tiger

unread,
Feb 18, 2006, 6:14:35 PM2/18/06
to
Thanks. Very appriecated.

Tiger

"Junior/RO" <jr_so...@yahoo.com.br> wrote in message
news:43f7...@newsgroups.borland.com...

Ian Branch

unread,
Feb 18, 2006, 5:23:34 PM2/18/06
to
Junior/RO wrote:

> sintax

Damn! I knew they would catch up and start taxing it someday...<g>

Ian

--

Q Correll

unread,
Feb 18, 2006, 5:39:44 PM2/18/06
to
Junior,

| I agree. But in the recent days, the white background hurt my yes.

Perhaps you might try a very light gray background.

--
Q

02/18/2006 15:43:17

XanaNews Version 1.17.5.7 [Q's salutation mod]

Q Correll

unread,
Feb 18, 2006, 5:38:30 PM2/18/06
to
Rudy,

| Yes.
|
| http://rvelthuis.de/images/bds2006_screenshot.png

Ahhh,... normalcy. <g>

--
Q

02/18/2006 15:41:43

Q Correll

unread,
Feb 18, 2006, 6:41:58 PM2/18/06
to
Ian,

| | sintax
|
| Damn! I knew they would catch up and start taxing it someday...<g>

<giggle>

--
Q

02/18/2006 16:45:27

Rudy Velthuis [TeamB]

unread,
Feb 18, 2006, 6:38:57 PM2/18/06
to

LOL! If any, the tax comes after 9 months.

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"The mistakes are all waiting to be made."
- chessmaster Savielly Grigorievitch Tartakower (1887-1956) on the
game's opening position

Nick Hodges [TeamB]

unread,
Feb 18, 2006, 7:20:00 PM2/18/06
to
Junior/RO wrote:

> Rudy Velthuis [TeamB] escreveu:
>
> > But don't you think you should simply find out what you like best?
>
> I agree. But in the recent days, the white background hurt my yes.

I'm totally with you. I use a black background.

--
Nick Hodges -- TeamB
Dunn Solutions Group -- http://www.dunnsolutions.com
Read my Blog -- http://www.lemanix.com/nickblog

Bill Mogk

unread,
Feb 19, 2006, 11:37:34 AM2/19/06
to
Nick Hodges [TeamB] wrote:
> Junior/RO wrote:
>
>
>>Rudy Velthuis [TeamB] escreveu:
>>
>>
>>>But don't you think you should simply find out what you like best?
>>
>>I agree. But in the recent days, the white background hurt my yes.
>
>
> I'm totally with you. I use a black background.
>
I couldn't figure why you didn't like the Line Highlight (I've always had it
turned on), but with a black background, it's pretty damn annoying.


Bill

Bill Mogk

unread,
Feb 19, 2006, 11:35:18 AM2/19/06
to
Rudy Velthuis [TeamB] wrote:
{snip}


> But don't you think you should simply find out what _you_ like best? Just
> try one of the standard settings and go from there. That is what I have
> done years ago. Only the event of more than 16 colours made me revise
> that a bit (but only a bit).
>
> IOW, this is so much dependent on personal preferences, that it is
> impossible to give useful advice.
>

Seeing how others have configured their system can give you new ideas, I
think. I never did like the black background. But Junior's screenshots
prompted me to try it again.

In the book "Guns, Germs & Steel" the author said that many, so called
inventions, were not brand new inventions, but improvements on the past work
of others, that simply made them acceptable. So, as users of Delphi, we
should be open to new techniques, and presentation methods.

I had tried the font that Junior is using before, and it looked terrible on a
white background, possibly since I don't have ClearType. On the black
background, it pretty good. On the other hand, I normally use Arial Terminal
(with a white background), and it doesn't look that good with a black background.


Bill

Rudy Velthuis [TeamB]

unread,
Feb 19, 2006, 10:36:35 AM2/19/06
to
At 17:37:34, 19.02.2006, Bill Mogk wrote:

> I couldn't figure why you didn't like the Line Highlight (I've always
> had it turned on), but with a black background, it's pretty damn
> annoying.

You could set it to some kind of dark gray, of course. <g>

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"All I need to make a comedy is a park, a policeman and a pretty girl."
-- Charlie Chaplin (1889-1977), in My Autobiography (1964)

Bill Mogk

unread,
Feb 19, 2006, 12:48:46 PM2/19/06
to
Rudy Velthuis [TeamB] wrote:
> At 17:37:34, 19.02.2006, Bill Mogk wrote:
>
>
>>I couldn't figure why you didn't like the Line Highlight (I've always
>>had it turned on), but with a black background, it's pretty damn
>>annoying.
>
>
> You could set it to some kind of dark gray, of course. <g>
>

Maybe I should get in a professional designer to help with my IDE colour
scheme. <g>

Q Correll

unread,
Feb 19, 2006, 1:21:29 PM2/19/06
to
Rudy,

BTW,... do any of you TeamB-ers know why the font combobox in the
editor optioins only shows a few fonts? And how can I get it to show
all of my fonts? It won't show the font I want to use in the editor,
even thouugh it's a mono-spaced font.

--
Q

02/19/2006 11:23:32

Rudy Velthuis [TeamB]

unread,
Feb 19, 2006, 1:24:57 PM2/19/06
to
At 19:21:29, 19.02.2006, Q Correll wrote:

> Rudy,
>
> BTW,... do any of you TeamB-ers know why the font combobox in the
> editor optioins only shows a few fonts? And how can I get it to show
> all of my fonts? It won't show the font I want to use in the editor,
> even thouugh it's a mono-spaced font.

AFAIK, the font must have some monospaced flag in its metrics. If it
doesn't, the font will probably not show.

But I don't know the code the IDE uses to determine whether a font is
monspaced or not, sorry. We don't get to see the source of the IDE. <g>

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"I'm not going to get into the ring with Tolstoy."
- Ernest Hemingway (1899-1961)

Nick Hodges [TeamB]

unread,
Feb 19, 2006, 3:17:45 PM2/19/06
to
Bill Mogk wrote:

>
> I couldn't figure why you didn't like the Line Highlight (I've always
> had it turned on), but with a black background, it's pretty damn
> annoying.

I don't like it with any color.

To each his own, of course.

Rudy Velthuis [TeamB]

unread,
Feb 19, 2006, 3:31:09 PM2/19/06
to
At 21:17:45, 19.02.2006, Nick Hodges [TeamB] wrote:

> Bill Mogk wrote:
>
> >
> > I couldn't figure why you didn't like the Line Highlight (I've always
> > had it turned on), but with a black background, it's pretty damn
> > annoying.
>
> I don't like it with any color.

If it is very inobtrusive (only a slight difference with the background),
I actually like it. Makes finding the cursor on a large screen easier. <g>

I was already used to it from UltraEdit (I'm still using 8.00). However,
there, the line highlight is bright yellow.

--
Rudy Velthuis [TeamB] http://rvelthuis.de/

"There is only one nature - the division into science and engineering is
a
human imposition, not a natural one. Indeed, the division is a human
failure; it reflects our limited capacity to comprehend the whole."
-- Bill Wulf

Anthony Frazier

unread,
Feb 20, 2006, 10:54:20 AM2/20/06
to
Junior/RO wrote:

> Bitstream's Vera Fonts are freeware.

I prefer the Deja Vu derivative. It adds several new faces, and is
aiming for much better Unicode coverage.

--
Pax,

Anthony Frazier
Victor Printing, Inc.

Q Correll

unread,
Feb 20, 2006, 1:25:05 PM2/20/06
to
Rudy,

| AFAIK, the font must have some monospaced flag in its metrics. If it
| doesn't, the font will probably not show.

That's what I figured might be the case.

| But I don't know the code the IDE uses to determine whether a font is
| monspaced or not, sorry. We don't get to see the source of the IDE.
| <g>

Oh, well,... I guess I'll use Courier PS.

Thanks!


--
Q

02/20/2006 11:28:05

Q Correll

unread,
Feb 20, 2006, 1:32:21 PM2/20/06
to
Anthony,

| I prefer the Deja Vu derivative. It adds several new faces, and is
| aiming for much better Unicode coverage.

Thanks!

I see they put up a new release (2.3.1) just yesterday, 02/19.

--
Q

02/20/2006 11:35:54

Junior/RO

unread,
Feb 20, 2006, 4:44:13 PM2/20/06
to
Anthony Frazier escreveu:

> I prefer the Deja Vu derivative. It adds several new faces, and is
> aiming for much better Unicode coverage.

Where to find?

Achim Kalwa

unread,
Feb 21, 2006, 2:27:27 AM2/21/06
to
Junior/RO schrieb:

> Anthony Frazier escreveu:
>
>> I prefer the Deja Vu derivative. It adds several new faces, and is
>> aiming for much better Unicode coverage.
>
> Where to find?

here:

http://dejavu.sourceforge.net/wiki/index.php/Main_Page

Achim


Uli Gerhardt

unread,
Feb 21, 2006, 4:46:04 AM2/21/06
to
>BTW,... do any of you TeamB-ers know why the font combobox in the
>editor optioins only shows a few fonts? And how can I get it to show
>all of my fonts? It won't show the font I want to use in the editor,
>even thouugh it's a mono-spaced font.

I'm no TeamB-er, but anyway... :-)
I installed Bitstream Vera Sans Mono yesterday and it showed in
the font combo of my D2005, but everytime I selected it and
clicked OK, the IDE reverted to Courier New.
Today it works, maybe because of the freshly booted system?

HTH, Uli.

--- posted by geoForum on http://delphi.newswhat.com

Xavier

unread,
Feb 21, 2006, 5:57:12 AM2/21/06
to
Uli Gerhardt wrote:
> Today it works, maybe because of the freshly booted system?

The IDE must be restarted if the font is added while it's running.

Q Correll

unread,
Feb 21, 2006, 11:46:06 AM2/21/06
to
Xavier,

| The IDE must be restarted if the font is added while it's running.

Good to know.

Thanks!

--
Q

02/21/2006 09:45:52

Q Correll

unread,
Feb 21, 2006, 11:46:06 AM2/21/06
to
Uli,

| Today it works, maybe because of the freshly booted system?

Damifino. <g>

--
Q

02/21/2006 09:44:32

Junior/RO

unread,
Feb 21, 2006, 7:17:26 PM2/21/06
to
Achim Kalwa escreveu:

> here:
>
> http://dejavu.sourceforge.net/wiki/index.php/Main_Page

thanks

Junior/RO

unread,
Feb 21, 2006, 7:18:18 PM2/21/06
to
Anthony Frazier escreveu:

> I prefer the Deja Vu derivative. It adds several new faces, and is
> aiming for much better Unicode coverage.

I have installed Deja Vu, can't find differences between both.

0 new messages