Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: Styling initialization cells

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121564] Re: Styling initialization cells
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Tue, 20 Sep 2011 06:08:24 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Reply-to: jfultz at wolfram.com

On Mon, 19 Sep 2011 07:06:11 -0400 (EDT), Mariano Suárez-Alvarez wrote:
> I tried that, but Code cells tend to ruin indentation.

They don't ruin indentation...they simply don't, by default, support any kind of 
automatic line-wrapping or automatic indentation.  They fully support manual 
indentation.

These things are easily tweaked with the PageWidth and AutoIndent options if 
you'd like to change the Code style or invent a new style.  The reasoning behind 
this decision is that Code cells are more likely to contain code over which you 
might want to express greater control of the display, as opposed to math where 
it tends to be pretty convenient and useful for Mathematica to just take care of 
the line-breaking/indenting for you.

Sincerely,

John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: Changing excel table with Wolfram Mathematica
  • Next by Date: Re: Compilation: Avoiding inlining
  • Previous by thread: Re: Styling initialization cells
  • Next by thread: output forms