We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Cosmetics: Code Highlighting
Page Index Toggle Pages: 1
Cosmetics: Code Highlighting (Read 1382 times)
Cosmetics: Code Highlighting
Apr 20th, 2005, 12:21am
 
Is there a reason that mousePressed() is highlighted in red whilst mouseMoved() and mouseReleased are in brown?

I also noticed that some of the constants are not being highlighted yet:

OPAQUE/THRESHOLD/GREY/INVERT/POSTERIZE/BLUR
Re: Cosmetics: Code Highlighting
Reply #1 - Apr 20th, 2005, 12:33am
 
We're not parsing the text for the color coding, simply matching. Because there is a mousePressed boolean and function, it can't distinguish between mousePressed and mousePressed(). This is an inconvenience, but doesn't break things. We're trying to get all the broken elements taken care of first. Now the code is open, someone could take the responsibility of implementing proper syntax highlighting. It's not one of our top priorities.

Thank you for noticing the ENUMS. I'll get those in for the next release.
Re: Cosmetics: Code Highlighting
Reply #2 - Apr 20th, 2005, 12:37am
 
Quote:
Now the code is open, someone could take the responsibility of implementing proper syntax highlighting.


How does it work if I'd like to contribute - is there a CVS? And where do I find the sourcecode?
Re: Cosmetics: Code Highlighting
Reply #3 - Apr 20th, 2005, 12:47am
 
Check this out:
http://processing.org/faq/index.html#opensource
Re: Cosmetics: Code Highlighting
Reply #4 - Jul 28th, 2005, 3:07pm
 
now tracking this issue here:
http://dev.processing.org/bugs/show_bug.cgi?id=113
Page Index Toggle Pages: 1