IDE enhancement : optionnal line colored ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

IDE enhancement : optionnal line colored ?

Post 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
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: IDE enhancement : optionnal line colored ?

Post 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
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: IDE enhancement : optionnal line colored ?

Post 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 :)
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: IDE enhancement : optionnal line colored ?

Post by Shield »

Why don't you post some of your long procedures in another thread and we'll get started? :)
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: IDE enhancement : optionnal line colored ?

Post by Golfy »

Here is the link to continue this discussion :)
http://www.purebasic.fr/english/viewtop ... 13&t=62867
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: IDE enhancement : optionnal line colored ?

Post 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...
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: IDE enhancement : optionnal line colored ?

Post 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 ;)
Post Reply