Cannot match brace in a long line of text

Started by Arthur, April 28, 2010, 04:45:46 PM

Previous topic - Next topic

Arthur

I was working on a long line of text in VB. I needed to match a brace. However, HE does not highlight matching braces in long lines (like in the image) and if I do right-click -> Navigate -> Go To Matching Brace nothing happens. I understand I can simply start refactoring the code, but that takes too much time, and Format command does nothing either, which would be a nice thing though to have indeed.
I really would like this functionality be always working for me.

alex

Hi Arthur,

is brace was inside of the string? Can you provide here text representation of code, that I can check it or it is critical?
HE has limitation for distance between braces, but have doubts that your line is longer then 8192 characters. This is done for performance reasons, otherwise navigation through code will be slow. But maybe there will be some changes in 1.50, I have changed a logic with brace search there.

About Format, format only correct indent, but do not split lines. But I think with scripting it will be possible to extend this functionality for every language.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

It was inside "". But it should work even inside a string I think, because this is so typical for say SQL code to be in double-quotes.
Some privacy issue is preventing me from publishing it, but I will send you a fragment (and if needed the whole file) privately if you still need it.
PS: The line is only 395 chars long.

alex

Hi Arthur,

"text" styles (strings, comments, documentation ) are skipped when searching for matching braces. I do non need the code.
Because you often can have invalid code inside or something like this ":)". So it will be more problems then benefits.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]