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_
   Bugs
   Software Bugs
(Moderator: fry)
   beautify breaks formatting
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: beautify breaks formatting  (Read 372 times)
Martin

122417302122417302martingomez_listsmg1ph WWW Email
beautify breaks formatting
« on: Oct 28th, 2003, 3:58am »

try to beautify this...
 
Code:

void setup() {
  // stuff
}
 
void loop() {
  // stuff
}
 
class MyClass // extends SuperClass {
{
  // stuff
  // more stuff
  // and some more stuff
}
 
void someMethod()
{
  // stuff
}
 

 
i think a little change in the beautify algo should do the trick.
 
fry


WWW
Re: beautify breaks formatting
« Reply #1 on: Oct 28th, 2003, 6:04am »

yup, known bug, though i've neglected to include it on the known bugs list (i'll add it). there are a couple other easter eggs in that algorithm too (switch statements are problems).  
 
not sure how this guy gets prioritized. it would be post-beta, though it can kinda drive ya nuts..
 
Euskadi


Re: beautify breaks formatting
« Reply #2 on: Feb 13th, 2004, 2:23am »

Also, stacked curlies are causing me heartburn. Or is it supposed to do this? As I go further down the editor, things get pushed way out to the right. I like to look at my sketch and see everything stuck to the left margin to know I don't have any un-closed loops, but that doesn't work if I stack my curlies.
 
 
Code:

void setup() {
  // stuff
}
 
void loop() {
  // stuff
}
 
class MyClass // extends SuperClass {
  {
    // stuff
    // more stuff
    // and some more stuff
  }
 
  void someMethod()
  {
 
    for(int a = 0; a < 9; a++){
 
 for(int b = 0; b < 9; b++){
   for(int c = 0; c < 9; c++){
     for(int d = 0; d < 9; d++){
  for(int e = 0; e < 9; e++){
 
     }}}}} // THIS INDENTS THE REST OF THE CODE
      }
 
      void methodToMyMadness()
      {
 
      }
 
fry


WWW
Re: beautify breaks formatting
« Reply #3 on: Feb 13th, 2004, 7:20pm »

ah, beautify.. such remarkable interpretive indenting. why bother fixing it when it makes such sweet poetry as in euskadi's code?
 
Pages: 1 

« Previous topic | Next topic »