Discussion:
SciTE color schemes?
John Doe
2005-01-19 18:09:37 UTC
Permalink
I prefer SciTE to any other editor. SciTE rocks plain
and simple, is better than Vim and the rest of the
crowd.

But have any of you created any color schemes for the
various languages that are out there? Maybe we could
convert Vim's schemes into SciTE's?

If any work had been already done, please tell me
about it and where to dl it, as I like a dark
background for my editing.



__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
Luka Kladaric
2005-01-19 18:19:42 UTC
Permalink
I second this... I would very much like to see an inverted color scheme...

-Luka


On Wed, 19 Jan 2005 10:09:37 -0800 (PST), John Doe
Post by John Doe
I prefer SciTE to any other editor. SciTE rocks plain
and simple, is better than Vim and the rest of the
crowd.
But have any of you created any color schemes for the
various languages that are out there? Maybe we could
convert Vim's schemes into SciTE's?
If any work had been already done, please tell me
about it and where to dl it, as I like a dark
background for my editing.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
_______________________________________________
Scite-interest mailing list
http://mailman.lyra.org/mailman/listinfo/scite-interest
--
Free Willy Wonka
David Emerson
2005-01-20 02:40:52 UTC
Permalink
I've been able to create an inverted color scheme by editing SciTEUser.properties as well as the language properties (e.g. html.properties, pascal.properties, perl.properties, etc.)

Unfortunately, many of the language properties filters have hard-coded colors instead of inheriting from the style hierarchy. This is, in my opinion, bad style :-)

If you'd like, I can post the relevant lines from my SciTEUser.properties, as well as the language properties files I use (mostly pascal.properties, so the others are not as well tuned)

It would be great if these changes could be migrated into the distribution version

Any requests? Shall I post them?

~David.
Philippe Lhoste
2005-01-20 09:51:31 UTC
Permalink
Post by David Emerson
I've been able to create an inverted color scheme by editing
SciTEUser.properties as well as the language properties (e.g.
html.properties, pascal.properties, perl.properties, etc.)
Unfortunately, many of the language properties filters have
hard-coded colors instead of inheriting from the style hierarchy.
This is, in my opinion, bad style :-)
If you'd like, I can post the relevant lines from my
SciTEUser.properties, as well as the language properties files I use
(mostly pascal.properties, so the others are not as well tuned)
It would be great if these changes could be migrated into the
distribution version
Any requests? Shall I post them?
Why not, as long as the file is small...

Note that since quite a long time, I provide my own set of .properties
files (those I changed for my needs), for inspiration purpose.
My tastes may not fit all tastes, but can provide ideas.

It was there that I first experimented with $(color.*), using the idea
Neil had with font reuse. It took some time before Neil adopted the
idea, but since it provided consistency accross the various lexers, he
saw it was a good idea.
But I changed only the properties of the languages I use most, so I
suppose lot of .properties files are still in "raw" state.

And I still use hard-coded colors where:
- A style is specific to a language, hence it is not reusable in other
languages (eg. verbatim string in C#);
- Some color combination doesn't look good in a given language,
depending on the density of a given style, or how often a style is near
other styles, so I need to hand edit some colors.

Per personal taste, I use low contrast colors. Well, high contrast of
fore color against back color (avoiding putting pastel text on pastel
background...), but low contrast of fore styles between them:
I use black for plain text (HTML) or identifiers, dark blue for
keywords, dark colors for most other styles. I use reddish colors mainly
for warning purposes, like "End of line where string is not closed".
And background colors are mostly white (I have no problem with this
color) or pastel colors for embeded languages (in HTML) or some block
comments or literal strings.

Of course, such settings may not look good on another display, depending
on its contrast, luminosity, etc. And I still think we should be able to
choose a different set of styles for printing purpose, as the
requirements are different (I would use backcolors much less, higher
contrast, etc.). I never worked on this, because actually don't print
much listings, even less in colors. And of course, an alternative set of
properties could be designed for printing purpose, and a simple script
could switch the .properties files before and after printing.


Often, actually each time I hand-edit my styles, I think I would make a
tool to ease the editing of Scintilla styles.

One way to do it would be to use Scintilla itself:
Load a file in the language of your choice, select a style in a list,
and use a color selector to change foreground and background colors, try
bold, italics, etc., use a font selector to change font and size, etc.
With instant feedback (perhaps changing color in text when moving a
slide), it would ease greatly editing.

If I ever make this tool, it wouldn't read/write directly SciTE
properties. First because I would want to make a generic Scintilla tool,
usable with any Scintilla based editor. Second because .properties files
are hard to read (althought I could reuse SciTE code) and even harder to
write (because of the use of pseudo-variables like $(colour.keyword)).
So user would have to retype found values, or copy/paste them.
Well, if I use Lua as storage format, I could use it to output data to
whatever format target editor uses.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Donovan
2005-01-20 11:00:23 UTC
Permalink
Post by Philippe Lhoste
Load a file in the language of your choice, select a style in a list,
and use a color selector to change foreground and background colors,
try
Post by Philippe Lhoste
bold, italics, etc., use a font selector to change font and size,
etc.
Post by Philippe Lhoste
With instant feedback (perhaps changing color in text when moving a
slide), it would ease greatly editing.
This is indeed a cool idea, which could be prototyped in
SciTE/Lua. Would have to add a few UI elements like
colour and font choosers which are accessible
to scripts.
Post by Philippe Lhoste
If I ever make this tool, it wouldn't read/write directly SciTE
properties...
harder to write (because of the use of pseudo-variables
like $(colour.keyword)).
That is indeed the problem. Making the property files
consistent (an excellent way to make user editing
easier) makes machine editing almost impossible.
If one wants the property files to be still
readable, of course ;)

steve d.
John Doe
2005-01-22 21:47:11 UTC
Permalink
Can you people think of programs that have color
schemes that might be translatable to SciTE?



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
Kein-Hong Man
2005-01-23 06:27:40 UTC
Permalink
Hi JD,
Post by John Doe
Can you people think of programs that have color
schemes that might be translatable to SciTE?
Er, what do you mean exactly? I for one can't quite grasp what you
are trying to describe. Perhaps you'd like to supply more info...
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
John Doe
2005-01-23 13:15:24 UTC
Permalink
I've had the following conversions in mind:

source code -> SciTE properties file
plain text configuration file -> SciTE properties file

And a public repository of properties files would be
very welcome on the scite site!
Post by Kein-Hong Man
Hi JD,
Post by John Doe
Can you people think of programs that have color
schemes that might be translatable to SciTE?
Er, what do you mean exactly? I for one can't quite
grasp what you
are trying to describe. Perhaps you'd like to supply
more info...
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
Kein-Hong Man
2005-01-23 16:29:37 UTC
Permalink
Hi,
Post by John Doe
source code -> SciTE properties file
plain text configuration file -> SciTE properties file
Um, how does this work? Do you mean to extract style information
from highlighted source code of a particular language and set it
as a properties file? I'm a little unclear how this can be done.
Do you have a detailed hypothetical example in mind, as in example
of software or tools or the steps used in the process?
Post by John Doe
Post by Kein-Hong Man
Post by John Doe
Can you people think of programs that have color
schemes that might be translatable to SciTE?
Er, what do you mean exactly? I for one can't quite
grasp what you
are trying to describe. Perhaps you'd like to supply
more info...
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
John Doe
2005-01-24 21:09:20 UTC
Permalink
I'd use this. The fold margin uses some checkers
pattern, so this makes for the darkest fold margin.

fold.margin.colour=#000000





__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
Luka Kladaric
2005-01-24 21:14:03 UTC
Permalink
icky icky poo :)


On Mon, 24 Jan 2005 13:09:20 -0800 (PST), John Doe
Post by John Doe
I'd use this. The fold margin uses some checkers
pattern, so this makes for the darkest fold margin.
fold.margin.colour=#000000
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
_______________________________________________
Scite-interest mailing list
http://mailman.lyra.org/mailman/listinfo/scite-interest
--
Free Willy Wonka
Continue reading on narkive:
Loading...