On Tuesday 29 December 2015 17:49:30 Fred van Stappen wrote:
> > Martin said:
> > It is possible to use "if", "case", "begin"... as a "call token" in order
> > to push another context on the stack with other keywords and colors. So
> > in theory it is possible to assign different colours to begin/end pairs
> > depending on the nesting level.
>
> Hello Martin.
>
> Ok, I insist...
>
> This because I need to study un-indented code and it is a hell to try to
> read it.
>
> Have try to use JEDI to re-format the code but, because there are lot of
> {$IFDEF somethings}, JEDI cannot do his job.
>
> And doing that manually => please, no, it will take centuries...
>
You don't need to reformat the whole code but the pieces where you make
changes only.
> So I am back with the "colored indented" solution.
>
> Could you give a little code-example how to use "if", "case", ... in syntax
> highlighter code ?
>
Do you understand the concept of tsyntaxpainter? Although maybe possible it is
not intendended for such tasks. Maybe it is better you make your own
parser/highlighter.
Martin
------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk