Page 1 of 1

IDE enhancement : optionnal line colored ?

Posted: Wed Aug 19, 2015 8:59 pm
by Golfy
Hi !

I used a lot of incrementation with IF...ELSE...ENDIF, REPEAT...UNTIL, etc.
Some procedures are very big and the begin of IF or REPEAT isn't always showed in the same page... it would be great to have dotted line with colors, like the following simulation.
I don't know if it's hard to code, but it would help me a lot to follow my codes ;)
Image

Thanks a lot by advance

Re: IDE enhancement : optionnal line colored ?

Posted: Wed Aug 19, 2015 11:46 pm
by Shield
First, I urge you to consider refactoring your code.
Deeply nested If statements and loops are hard to maintain.

To get these lines (though uncolored), you could enable indentation guides in the settings:
Settings -> Editor -> Indentation -> Show indentation guides

Re: IDE enhancement : optionnal line colored ?

Posted: Thu Aug 20, 2015 1:53 pm
by Golfy
Shield wrote:First, I urge you to consider refactoring your code.
Deeply nested If statements and loops are hard to maintain.

To get these lines (though uncolored), you could enable indentation guides in the settings:
Settings -> Editor -> Indentation -> Show indentation guides
I already use the "show indentation guide".

I still interested by tips for refactoring my code (my only idea to do that is to use more functions and procedures but this is more complex with many variables) ;)
Thanks :)

Re: IDE enhancement : optionnal line colored ?

Posted: Thu Aug 20, 2015 2:03 pm
by Shield
Why don't you post some of your long procedures in another thread and we'll get started? :)

Re: IDE enhancement : optionnal line colored ?

Posted: Thu Aug 20, 2015 8:42 pm
by Golfy
Here is the link to continue this discussion :)
http://www.purebasic.fr/english/viewtop ... 13&t=62867

Re: IDE enhancement : optionnal line colored ?

Posted: Thu Aug 20, 2015 10:34 pm
by Tenaja
Golfy wrote:I already use the "show indentation guide".
Do not count on your request being implemented any time soon. The IDE uses Scintilla, which only has one color for all indentation guides. To implement it with full colors would require a manual implementation, and that would be very laborious.

You could post your request on the Scintilla site...

Re: IDE enhancement : optionnal line colored ?

Posted: Wed Sep 02, 2015 5:25 pm
by Golfy
Do not count on your request being implemented any time soon. The IDE uses Scintilla
Yes, and scintilla won't implement it.

Thanks ;)