So I'm still using my own custom lexer to view logs, which is a massive improvement over the simple highlighting that Notepad++ offered. For the next version, I want to really make use of the tree view to navigate the log; however, I'm having trouble resetting the tree when a session is ended abruptly (closing a tab instead of clicking return in the application).
Is there a way to have a single token/regex end all open ranges?
Close all open ranges by single regex/rule
I'll give you an example.
Essentially, I want one token (the string "\session\start'", to be exact) to close all unclosed ranges so I can start from zero indentation.
Code: Select all
<a>
<b>
</b>
<b>
<c>
Log terminated at this point. This is what I get when a new session starts (in the same log file):
<a>
This is what I want to achieve:
<a>
We're halfway there! This works with different ranges, but not with nested versions of the same range:
Code: Select all
<a>
<a>
</a>
<a>
<a>
\session\start
<a>