User configurable folding?

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
Posts: 1
Joined: Sat May 27, 2006 6:47 pm

User configurable folding?

Post by McC »


Do you plan on making folding configurable by the user? Either via some preference options or via a plug-in API?

We end up creating a lot of little text formats in the course of our work, and I'd love to be able to quickly configure folding rules for it. One example is given below. Folding for "major headings" should start with the line of text above the "============="'s and end with the line above the text of the next set of "==============="'s. The number of equal signs should be equal to the length of text but it is not enforced. Any set of 4 or more equal signs constitutes a major heading. The same is true of other headings (---------- and ~~~~~~ and ++++++++, etc).
Lists should fold, paragraphs should fold, etc.

Thanks in advance,

This is a major heading

This is a paragraph. It is just text and text
and more text.

- Here is a list of item
- There are a number of items here
in this list that are of no use at all.
- Some list item have children
- This is a child
- This is another child
- This is not a child.

This is a minor heading

More text.

A tertiary heading

Yet more text.

Another minor heading

With more text.

- And a list
- The list has items.

The second major heading

That has more text.
Post Reply