FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   code colouring
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: code colouring  (Read 316 times)
benelek

35160983516098 WWW Email
code colouring
« on: Jan 9th, 2003, 7:45am »

g'day team,
 
  some syntax like mousePressed exists both as a variable and a method. ie, it can be used as either mousePressed or mousePressed(){}. proce55ing colours these both with the same colour, which may lead to confusion in designers when sorting out bugs, and viewing structure.
 
  could the method be coloured the same as methods such as loop() and setup()?  
 
 
-jacob
 
fry


WWW
Re: code colouring
« Reply #1 on: Jan 9th, 2003, 4:23pm »

i wish.. unfortunately i don't think the syntax coloring engine we're using is smart enough for that
 
i noticed that as well and was a bit bummed.  
 
it's not quite contextual, and just goes by keywords, and since we overload our keywords in using them as methods and as variables, we get this trouble.
 
i opted for the less intrusive variable-style coloring rather than having the function coloring.. this can be tweaked in lib/pde.properties as necessary..
 
Pages: 1 

« Previous topic | Next topic »