It is currently Tue May 21, 2013 12:17 pm

All times are UTC + 1 hour




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Colored procedures in procedure browser
PostPosted: Sun Sep 30, 2007 7:21 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 6561
It's often hard to spot a particular procedure in the procedure browser, so
I was thinking it'd be nice if we could color them in the list? To do it, I was
thinking the editor could check if the "Procedure" line was followed by a
special comment, and if the comment existed, then color it in the browser.

Something like this perhaps?

Code:
Procedure FlushEvents() ; [R,G,B]
  While WindowEvent() : Wend
EndProcedure

So the editor would see that a color code is commented, and apply that color.
So to have it show the above in green in the browser, the programmer would
just put a comment of [0,255,0] after the procedure line, as the comment.

It wouldn't affect anyone's existing code and wouldn't color any procedures
that didn't specifically have that style of comment. It would make it easier
to have groups of related procedures seen in the browser, too, because I
could color all my file op procedures in red, and so on.

Here's an example image of what I mean:

Image
.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 9:43 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Dec 03, 2005 1:31 am
Posts: 573
Location: Australia
Nice idea. Might be better realised with a right-mouse click on the procedure name in the browser to produce a menu to set (via a picker)/clear a colour for the listing in the browser. It might be worthwhile to extend this (as a separate option) to colourise the background of the source code itself to help it stand out as you're scrolling up and down in the source.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 9:52 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 442
Location: ger
there was a similar request in the german forum (link) but i would not realy need that. may be i would use if it was there finally :lol:
usually i have different files for different categories of routines anyway.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 10:08 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 6561
> i would not realy need that

When the procedure browser has hundreds of procedures shown, it gets
difficult to spot the one you're looking for. I'm currently using workarounds
such as capitalizing procedure names, and sticking lines like ";------" in the
source to make them more obvious, but colors would be the best way.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 10:24 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 442
Location: ger
ok, probably my previous projects are just small enough to cope with that.
i never had hundreds of procs in a file. could be usefull then.


Top
 Profile  
 
 Post subject: Re:
PostPosted: Mon Jan 02, 2012 2:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Dec 08, 2009 8:34 pm
Posts: 161
Location: United Kingdom
PB wrote:
> i would not realy need that

When the procedure browser has hundreds of procedures shown, it gets
difficult to spot the one you're looking for. I'm currently using workarounds
such as capitalizing procedure names, and sticking lines like ";------" in the
source to make them more obvious, but colors would be the best way.


OOP would cure this! :wink:

_________________
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65


Top
 Profile  
 
 Post subject: Re: Colored procedures in procedure browser
PostPosted: Mon Jan 02, 2012 3:22 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5188
Location: Germany
Reviving a 4 year old topic for a cheap trolling attempt. You should be proud of yourself.

_________________
Perl – The only language that looks the same before and after RSA encryption.
-- Keith Bostic


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye