Hi,

I notice some limitations in the code folding. This is some ideas i picked in an old text editor (about 15 or 20 years ago) :

- The code folding tag must be inserted in the source file. Then you can load the same folded-code you save.
- You can fold anything you want.
- Nested folding are allowed
- When you fold a peace of code, you want see the first line of the folded code :

Example :

[[;this is the first line

; anything you want

]]

become :

[[;this is the first line]]


[]

[]

You coud change the color of the folded code (and sub the [[ ]]), etc...

You can modify some of automatisations (that you can disable) :

"toto proc" + return

become :

[]

Thierry
Posted on 2004-03-04 08:52:43 by golemxiii
Hi,


1.The code folding tag must be inserted in the source file. Then you can load the same folded-code you save.
2.You can fold anything you want.
3.Nested folding are allowed
4.When you fold a peace of code, you want see the first line of the folded code :

Example :

[[;this is the first line

; anything you want

]]

become :

[[;this is the first line]]


[]

[]

You coud change the color of the folded code (and sub the [[ ]]), etc...


5.You can modify some of automatisations (that you can disable) :

"toto proc" + return

become :

[]


1.If I understand well, the tag won't be saved in the source file but in the *.wap file. Am I correct?
2&3&4.Put into the to do list. Thanks
5.I understand that you want to disable automisation, but what sort of modification you want?

Regards and thanks for the ideas,

akyprian
Posted on 2004-03-04 10:19:20 by akyprian
Hi,

Thank for your reply :-)

I think about folding and this is how it could be implemented :

You have two solutions :

- Coding the folding in the wap file

or

- Coding the folding in the asm file like this :

;++ means start - expanded

;- - means end

;== means start - collapsed

Example :

;++
;my sample code
mov eax, 0
add eax, 4
;--

become this when you parse your file :

_________________________________
;my sample code
_________________________________

A collapsed code can't be changes.

See you,

Thierry
Posted on 2004-03-05 07:26:44 by golemxiii
Thanks,

I 'll think about it.

Regards,

akyprian
Posted on 2004-03-06 06:19:11 by akyprian