John Salerno wrote:
Darn, I knew it was too much work!

I am happy that I can add at least one extra group (although I'm
curious what "highlighted identifiers" is *really* supposed to be
referring to), but there is more than one group of words that I'd like
to add, with different styles for each. I'm just a little surprised
that, as flexible as Scite's options are, the syntax highlighting is
so rigid.

Well, this is one of the *reasons* lexers get written - you want syntax coloring done a particular way, and none of the existing lexers can be coerced into doing what you want... :)

Before I wrote the one for OCaml, I had some of the same issues as you - why isn't this more flexible/useful/what I want? But then you realize after studying it that real languages are full of special and/or weird cases (WRT syntax coloring) and are not really amenable to being handled by some sort of regular expression -based solution (which is what some of the "universal" lexers constructed have tried to do).

I also see an entry in my python.properties file called:

# Identifiers
style.python.11=

What are "identifiers" in this context? And why is there no style
associated with them by default? Is this perhaps something I can
commandeer as well? :)

Look at a few more .properties files - you will probably see that this is by far the most common way of handling a language's "identifiers". It just turns out to be fairly standard practice to *not* color or highlight programmer-defined identifiers, only the language-defined identifiers and operators.

None of this means you can't tweak any of these styles to your own liking on your installation, of course... ;)

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to