Code folding with Select case instruction

Post your requests and ideas on the future development of mikroBasic PRO for PIC.
Post Reply
Author
Message
Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

Code folding with Select case instruction

#1 Post by Kalain » 12 Apr 2009 20:14

Hi,

It would be nice to add code folding with select case instruction.
Folding code could also be applied with "Case" instruction.

Like this you can fold whole code at "Select" or part of code at "Case" instruction.
Alain

Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

#2 Post by Kalain » 12 May 2009 21:08

Hi,

Just wonder if this feature is on the way ?
(not here in MB Pro 1.50 beta)
Alain

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#3 Post by zristic » 13 May 2009 08:42

The problem is that the case structure ends with two keywords "end" and "select". The problem is that the space between the two keywords can take variable number of spaces.
We are working on the solution for this and it is not easy.

Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

#4 Post by Kalain » 13 May 2009 12:22

zristic wrote:The problem is that the case structure ends with two keywords "end" and "select". The problem is that the space between the two keywords can take variable number of spaces.
There probably some good technical reasons for this but from outside it's a bit surprinsing because it works with "if... then ... end if" which is also done with "end" space "if".

Anyway, if it's on the way this is great.
We are working on the solution for this and it is not easy.
One solution I use is to put "Select case ...End select" instruction inside a "if 1 then ... end if".
This looks very bad but at least you can fold "Select case" code.
Alain

Post Reply

Return to “mikroBasic PRO for PIC Wish List”