Page 1 of 1

Syntax coloring

Posted: Sat Aug 13, 2005 12:16 pm
by PB
Just remembered something else that jaPBe did which was handy: you could
set separate syntax coloring for all the CompilerIf/CompilerEndIf commands,
and also for the Debug command. Makes it much easier to see which parts
of your code are selectively compiled, and where your debugging efforts are.

Posted: Sat Aug 13, 2005 2:35 pm
by Dare2
Yes. These small things are really great. Also, for example, every text decoration "grouping" can have just about everything stylish defined: Colour, font, bold, background, etc.

Given that certain strings (keywords) are already grouped, how hard would it be to allow the user to create their own additional style groups and then assign character-strings to those groups? Not necessarily keywords. But any word outside of a quoted string. So
; Version
could be grouped and styled just as keywords are. And keywords could be re-assigned to a user group by the user.

There would still be the default groups, but specific words assigned to one of the new groups would use that style.

You could add other attribute flags, etc to a group, such as:

* These keywords increment the indent at the next line
* These keywords decrement the indent at their own line
* These keywords ignore the indent and always start at the beginning of a line (I would use that for comments!) - also labels.
* These keywords start folds
* These keywords stop folds

etc.

Then one check as to the keyword's (or character-string's) group and you have a raft of information!

That would give tremendous flexibility. It may also save you lots of small changes and additions into the future.