topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday April 19, 2024, 4:59 am
  • Proudly celebrating 15+ 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 3126 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
group lines
« on: May 16, 2012, 05:07 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,642
    • View Profile
    • Donate to Member
Re: group lines
« Reply #1 on: May 16, 2012, 08:16 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,823
    • View Profile
    • Donate to Member
Re: group lines
« Reply #2 on: May 18, 2012, 07:12 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 AM by kalos »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: group lines
« Reply #3 on: May 18, 2012, 07:39 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: 3,612
    • View Profile
    • Donate to Member
Re: group lines
« Reply #4 on: May 18, 2012, 07:43 AM »
Maybe this editor fits your needs? http://tibleiz.net/code-browser/

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: group lines
« Reply #5 on: May 18, 2012, 07:45 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-[)