code folding for plain text?

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 1
Joined: Sun May 24, 2026 11:57 am

code folding for plain text?

Post by chagos »

Hello!
Akelpad is the best text editor among others I've used and I feel lucky to get acquainted with it.

One of the useful features is code folding that can be used as note-taking outliner. with that you can expand/collapse the entire document as you wish.

How I do it:

1. Enable Coder::CodeFold plugin
2. Write text document as normal(usually it's my to-do lists or some memos of my favorite books, movies, games and tips for study etc)
3. Divide the topics with <z> and </z> tag; this tag does not exist but it still works when creating blocks of text. actually any strings enclosed with <> does the trick. I dont know if this is normal behavior for code block.
4. Save it as html file.
5. Done!

Next time I open the file, it has plus(+) and minus(-) sign that when clicked expands or collapses the code block or with hotkey the entire document altogether.

Here're a few questions...

1. Is it possible to create the rule for how and when fold/unfold is done? For example, I just want to write stuffs as normal, without accidentally including tags that has its own purpose by html syntax. Maybe starting the line with "@@@" to indicate it's the header and following lines will be part of that section until another "@@@" is encountered. I heard somewhere that *.coder file is used to customize the rule but I have no expertise in messing with it and could not understand anything in it, so please teach me like I am 5 years old.

2. I intend to just read and edit the file within text editor, so it does not have to be html(I chose it solely because I could simply enclose the text with <z>....</z> to easily achieve the outlining functionality, not because I preferred to use html. Any better ideas to achieve the goal?

3. Like said earlier, <z>...</z> or any single or multiple characters , if enclosed by bracket, does fold the code. Is this normal? because any nonsense tag not used in any language, e.g. <jackdawson> still folds the code.

4. "Ctrl + shift + =" hotkey toggles expand/collapse all blocks in default settings. which part of the document it jumps to on the screen depends on which header the cursor was on when hotkey was triggered. but I find it kinda unproductive that the header is in the middle of the screen rather than the top. Can I set it to be placed on the top without scrolling it up myself?

Sorry If some of my statement doesn't make sense or are hard to understand. English is not my 1st language but I tried my best to explain things!
Thank you and have a great week!

Offline
Posts: 179
Joined: Fri Aug 15, 2008 8:58 am

Re: code folding for plain text?

Post by Diamen »

Try Markdown.
Post Reply