Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.6K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Wolfram Language Package Notebook - Line Indenting Query

I've created a new Wolfram Language Package notebook from Mathematica V12.1.1 running on a Mac.

I want to set line indenting to a value of, say, 2 for expression formatting for the whole notebook. using the Option Inspector, this works on a cell by cell basis, but not for the selected notebook or globally.

Also, unlike ordinary notebooks, the "Edit Stylesheet" menu is disabled in package notebooks.

Is anyone able to give me a pointer as to how I can set line indenting for all code cells so I don't have to set the value individually for every single cell.

EDIT: I've just noticed that if I save and re-open the package notebook, my cell-by-cell indentations are forgotten.

Thanks in anticipation...

POSTED BY: Ian Williams
3 Replies
Posted 6 years ago
POSTED BY: Rohit Namjoshi

Hi Rohit, That's actually quite a neat trick. Thanks for the suggestion, I can see me using it. For packages I still prefer the package notebook, but haven't yet figured out how to control indenting. Perhaps such control features haven't yet been implemented. Thanks again, Ian

POSTED BY: Ian Williams

Thanks Rohit,

I'll take a look at what you suggested. But I quite like the functionality of the built-in package notebooks for writing smallish packages so would like to figure out how to get the code to indent as it does in standard notebooks. I guess there must be a way of doing this, but it's not obvious to me and I'm hoping that somebody out there has a straightforward solution.

All the best,

Ian

POSTED BY: Ian Williams
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard