MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Good Programming Style


  • To: mathgroup@smc.vnet.net
  • Subject: [mg11218] Good Programming Style
  • From: "Christopher R. Carlen" <crobc@epix.net>
  • Date: Mon, 2 Mar 1998 23:11:08 -0500
  • Organization: epix Internet Services

I have been trying to figure out how to do indenting when I write
modules of code.  I have some observations, and I wonder if anyone can
suggest better strategies:

I set the font to "Fixed" hoping that all characters will line up in
vertical columns.  All characters to except spaces, which means I can't
use spaces to indent efficiently.

When I use Tabs to indent, they increment the cursor position in the
desired one character width at a time.  However, when I print the code,
it all appears flush up against the left margin of the cell.  

Finally, is there a way to get the indentation to automatically go to
under the first character of the line above, like a typical programming
editor for C and similar languages?
-- 
_______________________
Christopher R. Carlen
crobc@epix.net          <--- Reply here, please. carlenc@cs.moravian.edu
My OS is Linux v2



  • Prev by Date: combining graphics
  • Next by Date: Mathlink what is P(( ))
  • Prev by thread: Re: combining graphics
  • Next by thread: Mathlink what is P(( ))