[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java Formatting

Pasting the 11 lines of code from your message into a new
foo.java buffer 
under emacs 20.3 and hitting  C-x h to mark the whole
and then M-x indent-region to indent the code --the result
looks correct 

import java.io.*;

public class test
    public static void main(String[] args)
        System.out.println("indenting fails to work by this point.");
        System.out.println("further lines are even worse!");
        System.out.println("eventually, the formatting is unusable.");

Best Regards,

      Adobe Systems                 Tel: 1 408 536 3945   (W14-128)
      Advanced Technology Group     Fax: 1 408 537 4042 
      W14-128 345 Park Avenue     Email: raman@adobe.com 
      San Jose , CA 95110 -2704     Email:  raman@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/    (Cornell)
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.

       To unsubscribe or change your address send mail to
"emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"

Emacspeak Files | Subscribe | Unsubscribe