Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 03, 2015, 02:15:50 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: group lines  (Read 1301 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,369
    • View Profile
    • Donate to Member
group lines
« on: May 16, 2012, 05:07:09 PM »
hello!

looking for a software or something that has the ability to display text as shown below
ie. where text lines are grouped in a treeview with the ability to expand/collapse, etc them
the grouping criteria will be a regex match or something
also, it would be nice to highlight (paint in specific color) groups that all their lines have some specific regex matches

thanks!

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,394
    • View Profile
    • Donate to Member
Re: group lines
« Reply #1 on: May 16, 2012, 08:16:10 PM »
Kinda tricky that does this straight onto a text with line numbers. A couple of the TreeDB programs do expand and contract but then line numbers are not alway easy - they become nodes.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,369
    • View Profile
    • Donate to Member
Re: group lines
« Reply #2 on: May 18, 2012, 07:12:56 AM »
even a text editor that can do this, it's fine for me :/
if only I knew the proper terms for search for that feature...
« Last Edit: May 18, 2012, 07:21:57 AM by kalos »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,538
    • View Profile
    • Donate to Member
Re: group lines
« Reply #3 on: May 18, 2012, 07:39:35 AM »
Usually only programmer editors and IDE's have that feature, usually termed as 'Fold' or 'Collapse'. And generic editors enable it only on known sourcecode types, like .c, .cs, .java, .ahk, etc. where the structure of the content is known, and can actually be collapsed in useful chunks. Scite does a nice job, even folding comments, but not for text. Most likely other programmers editors do allow/support that.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,538
    • View Profile
    • Donate to Member
Re: group lines
« Reply #4 on: May 18, 2012, 07:43:08 AM »
Maybe this editor fits your needs? http://tibleiz.net/code-browser/

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,896
    • View Profile
    • Donate to Member
Re: group lines
« Reply #5 on: May 18, 2012, 07:45:04 AM »
http://en.wikipedia....rg/wiki/Code_folding

With Sublime Text, you can fold/unfold any text you have selected with the mouse (ctrl-shift-[)