Each time I've been looking for "something I don't know exactly what" in big text file, e.g. log-file, huge shell script, I wish to hide all the lines of certain types.
I wish to select certain lines with a set of regexps and either hide them or highlight.
It would be nice if I could select line blocks e.g. those lines between "function ...() {" and corresponding "}"
can you suggest me such a viewer?
Here are 5 of the best viewers
MultiTail View multiple logfiles windowed on the console
System Log Viewer A system log viewer for GNOME
KSystemLog System log viewer for KDE 4
Xlogmaster GTK+ based program to keep track of logfiles and devices
Swatch Logfile viewer with regexp matching, highlighting & hooks
source
Have you tried regexxer? It can highlight matches and you can jump from match to match but it won't filter just matches. Similarly like gnome-system-log but more easy to use
I could also show you how to filter regex matches (display only matching lines) in SciTE editor, with small LUA script, and I imagine many others can show you how to with vim or emacs, but you didn't mention which editor you use.
You can try Geany [GUI]
regx for multiple line is not supported bust you can use - and + to hide/show portion of text such as functions ({...}).
It support may languages including xml.
http://www.geany.org
Have you tried
vim
withfolds
? It can fold code blocks very well.This command sets fold method based on indentation.