I know we can match braces dynamically (in some cases), but is it possible to match arbitrary tokens (perhaps of different lengths) dynamically?
eg. <? and ?>
or < and />
or < and > (in html sections of the multihighlighter)
and highlight the matching tagnames or full tags when inside each like <p></p> would highlight just the p's when cursor is adjacent to them or the brackets when adjacent to them. (maybe using a lookahead priority?...i think thats how brace matching currently functions)
the SynWeb component (dev-PHP, phpDesigner Pro) or Gridinsoft notepad are good demos of this.
dynamic highlighting of matching tokens/tags and dynamic autoclose are probably the most useful features of any programming editor (maybe aside from automatic indentation and syntax coloring)
ideal autoclose for tags would work like in dreamweaver, closing the last unclosed tag when a user types </
...or is this something that needs Scintilla recoding?
thanks,
Leon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know we can match braces dynamically (in some cases), but is it possible to match arbitrary tokens (perhaps of different lengths) dynamically?
eg. <? and ?>
or < and />
or < and > (in html sections of the multihighlighter)
and highlight the matching tagnames or full tags when inside each like <p></p> would highlight just the p's when cursor is adjacent to them or the brackets when adjacent to them. (maybe using a lookahead priority?...i think thats how brace matching currently functions)
the SynWeb component (dev-PHP, phpDesigner Pro) or Gridinsoft notepad are good demos of this.
dynamic highlighting of matching tokens/tags and dynamic autoclose are probably the most useful features of any programming editor (maybe aside from automatic indentation and syntax coloring)
ideal autoclose for tags would work like in dreamweaver, closing the last unclosed tag when a user types </
...or is this something that needs Scintilla recoding?
thanks,
Leon