In the jgtk edit window find "format" in the "script" window. This will indent your code. I use j mode for emacs which indents my source quite nicely, as do all of the emacs language modes I've used. (Mark the target region and invoke indent-region command.) Start a new line using C-j instead of Enter gives the right indentation. Tab at beginning of line also move point to correct spot.
On Thu, 2011-03-03 at 23:53 +0800, [email protected] wrote: > Message: 8 > Date: Thu, 3 Mar 2011 15:53:33 +0000 > From: Justin Paston-Cooper <[email protected]> > Subject: Re: [Jprogramming] Doing it the J way > To: Programming forum <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Your criticism is valid. I'd been lazy previously because of lack of > auto-indent. The line with fail =. fail , y - numPoss should be fail > =. fail , y - numPoss + # game, but I'm not using fail yet. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
