Robert Roessler wrote:
Neil Hodgson wrote:
Sebastian Pipping:
the current lexer "props" does not offer the ability
to colour the left and the right side of an assignment
differently. SCE_PROPS_DEFAULT is used for both.
I can see why this is wanted (although the demonstrated value
colour is too bright for me) but am concerned over the degree of
compatibility. Do other people feel it is worthwhile?
It'd be more compatible to leave one side or the other as
SCE_PROPS_DEFAULT, probably the keys. For names, I'd prefer
SCE_PROPS_KEY over SCE_PROPS_LEFT and SCE_PROPS_VALUE over
SCE_PROPS_RIGHT.
Not an endorsement (although I too prefer Neil's naming), just a
reminder for whoever does this (if it doesn't already work this way):
please handle "continued" property assignments (with the '\' at the end
of the line) as RHS values. Thanks! :)
-----------------------------------------------------------------
if you like _KEY and _VALUE better that will be just fine.
i noticed that line-continue-problem, too.
you are right - it cannot stay this way.
there are several ways this could be solved:
(1) easiest solution is to make the left part
SCE_PROPS_KEY and keep the right as SCE_PROPS_DEFAULT.
this would allow two different colours while
still working with ini- and multi-line property-files.
(this is what neil suggested)
(2) split at the others.properties level:
both SCE_PROPS_KEY and SCE_PROPS_VALUE are offered
but SCE_PROPS_VALUE is set to the same as SCE_PROPS_DEFAULT
for property files.
(3) split at the lexer level - one with mutli-line
assignments and one without. LexProps and LexIni
or similar. maybe overkill, not sure.
all of these should lead to correctly handled multi-line
assignments.
sebastian
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest