DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: group lines  (Read 5,375 times)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
group lines
« on: May 16, 2012, 10: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

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Re: group lines
« Reply #1 on: May 17, 2012, 01:16 AM »
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.
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: group lines
« Reply #2 on: May 18, 2012, 12:12 PM »
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, 12:21 PM by kalos »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: group lines
« Reply #3 on: May 18, 2012, 12:39 PM »
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.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: group lines
« Reply #4 on: May 18, 2012, 12:43 PM »
Maybe this editor fits your needs? http://tibleiz.net/code-browser/
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: group lines
« Reply #5 on: May 18, 2012, 12:45 PM »
http://en.wikipedia.org/wiki/Code_folding

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

Original address: https://www.donationcoder.com/forum/index.php?topic=31046.0