Inner Document Syntax Highlighting...
Posted: Sat Mar 07, 2009 7:57 am
It would be really cool if TextPad could change its syntax highlighting pretty much on a per line level. Since I know that would be a pretty tall order, I would settle for the ability to specify special character sequences that switched the highlighting.
For example, I would like to be able to specify that in C, C++, etc... that the sequence "///" meant the highlighting should switch to Doxygen syntax. It should also be possible to instruct TP to keep the normal C, C++, etc... if the sequence is "////..." unless the next or previous non-empty line was the "///" sequence.
Another example would be the ability to detect <style> and <script> blocks in HTML.
I know there are some syntax files out there that try doing this by mixing multiple sets of keywords into a single syntax file. However, this isn't nearly as effective as native support would be.
For example, I would like to be able to specify that in C, C++, etc... that the sequence "///" meant the highlighting should switch to Doxygen syntax. It should also be possible to instruct TP to keep the normal C, C++, etc... if the sequence is "////..." unless the next or previous non-empty line was the "///" sequence.
Another example would be the ability to detect <style> and <script> blocks in HTML.
I know there are some syntax files out there that try doing this by mixing multiple sets of keywords into a single syntax file. However, this isn't nearly as effective as native support would be.