Syntax highlight for errors ? |
Post Reply |
Author | |
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
Posted: 29 July 2008 at 4:19pm |
Hello,
is there a mode to highlight syntax errors in the source text ?
A nice to have would be some squiggly lines under the selected text plus
a customizable tooltip when you hover with the mouse over it.
Like the 'Indicators' in Scintilla...
Regards,
Alex
|
|
peerschindel
Groupie Joined: 12 July 2008 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Hi,
I'm digging into the functionality of the control since a few weeks
and I can tell you, that there's no such mode.
The whole syntax coloring is static (means: given by the schema
defintion files). There are no dynamic elements which would be
required for e.g. syntax coloring of errors (because you would have
to say programmatically that this line is now an error.)
Only if the error detection is totally simple and could be defined
in the schema file, it's possible e.g. make the default color "red",
make all your keywords, strings, variables, operators, etc. "black"
in the schema definition. So everything else is an error and so it's red.
But most probably error detection on the scanner level is not sufficiant
and the error detection must be made somehow on the level of
your own parser for your language.
But maybe you can simply set a bookmark on the error line
or simply make a selection on the error line.
(When I'm just writing this... could be a good idea for my own
application to use selection or bookmark for that... ;-)
Regards
P.S.:
Tooltips are used by the control only for the expanded versions
of a collapsable text and for nothing else. (Can be seen from
the source code)
|
|
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
|
Thanks for your reply.
The error parsing would be done in our own software stack.
It would be nice to extend the SE in a way so that's possible to mark segments of the text and give more freedom when drawing it.
This is surely a feature which would raise the value of the SyntaxEdit control.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |