Posted 19 years ago
by NSXDavid
As part of our editing environ, we have a nice global file search like VS.NET. The results are put into a Find output window which is, of course, an Syntax editor control. We've gotten it to work great! Especially since we can apply syntax highlighting to the line as well.
We've just recently added the ability for the global find to return a user-defineable amount of "context" lines before and after the find hit. Wish VS did that. :)
What we want to do, though, is use the outlining mode to display the find results collapsed so each line of the output is the hit and clicking on the [+] would expand to show the before and after lines.
Some issues have arisen from this:
We tell the collapsed version what the text should be, but that's just a string and it seems there is no way for SyntaxEditor to SyntaxHighlight that text anymore. Can we make it do that or request that option for the future?
When the user expands the collapsed region, we have to play with the custom line numbers at that moment to make sure the line number shows up on the middle line, not the first anymore. But we can't find an event that fires when a user expands or collapses an outline. Is there one?
-- David
We've just recently added the ability for the global find to return a user-defineable amount of "context" lines before and after the find hit. Wish VS did that. :)
What we want to do, though, is use the outlining mode to display the find results collapsed so each line of the output is the hit and clicking on the [+] would expand to show the before and after lines.
Some issues have arisen from this:
We tell the collapsed version what the text should be, but that's just a string and it seems there is no way for SyntaxEditor to SyntaxHighlight that text anymore. Can we make it do that or request that option for the future?
When the user expands the collapsed region, we have to play with the custom line numbers at that moment to make sure the line number shows up on the middle line, not the first anymore. But we can't find an event that fires when a user expands or collapses an outline. Is there one?
-- David