Sebastian Pipping wrote:
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.

---------------------------------------------------------------
i thought about the whole thing again and i now clearly
prefer this solution (modified #1) to be the best:

* SCE_PROPS_DEFAULT for the right as before
* SCE_PROPS_KEY for the left side but with default styling
  ("style.props.5=") so both sides still look the same by default

benefits are:
* different highlighting for both sides possible but not forced
* multi-line/line-continue compatibility
* works with property files and ini files at the same time
* allows to apply any other solution additionally later


here is a patch which should exactly add the above to the test
download neil sent around a few days ago:

http://www.hartwork.org/public/scintilla_props_key_patch.diff



sebastian

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to