23
votes
Accepted
Shell Emulation inside Mathematica
First of all, I agree, as OP mentioned in his comment, ANTLR is one of the proper ways to go.
Now for this specific task, it might be easier to just compose a parser in the "dirty" way, except we don'...
22
votes
What are "\<" and "\>" delimiters in box expressions?
This syntax was deprecated in the version 6.0 era. According to the legacy documentation,
For example, in version 5.2, the following strings are interpreted differently
...
21
votes
Accepted
What is FrontEnd`AttachCell?
##Intro
One day I was playing with Developer` package and found DateSetter which uses some kind of floating elements that I ...

Kuba♦
- 135k
19
votes
Accepted
How do I get the timing of an evaluation after it has already finished?
The case when the evaluation is finished
Some of my calculations take hours or even days, so I don't want to restart the entire evaluation just to add Timing[] to ...
17
votes
Accepted
How to change the font color of a variable in whole input cell
You can use this to create a functionality which will fit your need the best.
Here's how you can preview your input cell with c highlighted ...

Kuba♦
- 135k
17
votes
Accepted
How can I clean up a notebook?
Update
I have incorporated Kuba's improvement into the code.
Here is how I would do it.
In a working notebook (not the target notebook) put the following code.
...
16
votes
Accepted
ShowGroupOpener's behavior change in 11.3
TL;DR;
To set ShowGroupOpener on a global level, previously done by CurrentValue[$FrontEnd, ShowGroupOpener] = True, now use:
<...

Kuba♦
- 135k
15
votes
How do I get the timing of an evaluation after it has already finished?
Evaluate
SetOptions[$FrontEnd, EvaluationCompletionAction -> "ShowTiming"]
and then the evaluation time for the last evaluation will be shown in the ...
13
votes
How to copy and paste $n$ lines from a text editor to $n$ cells?
It is not straightforward to access the clipboard contents but one way, that doesn't involve writing and reading from temporary notebooks is to use the undocumented ...
13
votes
12
votes
Set the style of a cell
I don't know if any of them can be callled documented but I know three ways to do this:
mentioned above:
FrontEndToken way:
...

Kuba♦
- 135k
12
votes
How can I clean up a notebook?
Another possibility is to modify the notebooks style sheet by defining a new "Screen Environment" that hides cell brackets and closes input cells:
...
12
votes
Accepted
How to open a Python interpreter input cell?
Type > at the start of a cell (or when between cells). This is documented in an example on ref/ExternalEvaluate (last Basic Example). I'm a bit suprised it's not in the details section. It probably ...
11
votes
Accepted
How to programmatically mark and then select a subset of input cells?
There is a special cell attribute called CellID. I would suggest using this instead of cell tags to avoid the problem that you mentioned with cell tags being ...
11
votes
Accepted
What are "\<" and "\>" delimiters in box expressions?
Thanks to andre's comment (where this link is provided), I now see the effect of those delimiters (I tested it in Mathematica 11 and also some earlier versions). When I add 2 newlines to the box ...
11
votes
Select Only Printed Out Cells
Here is a quick way of doing it:
NotebookFind[nb = EvaluationNotebook[], "Print", All, CellStyle];
CreateDocument[NotebookRead[nb]]
11
votes
Accepted
Delete all output in notebooks
Print and Message and so on are generated cells, like the output from evaluating input. This, from the docs for ...
11
votes
Accepted
New input cell style with a custom evaluator
You can use StyleKeyMapping to easily switch back and forth from "Input" cells to your "CustomInput" cell. For example:
...
11
votes
Accepted
10
votes
Accepted
How to make a dynamic nested menu?
Here's beta version, basic functionality is delivered. I have to polish it but probably I won't have time for that this year. It has to be packed into self contained module and styling options have to ...

Kuba♦
- 135k
10
votes
What are "\<" and "\>" delimiters in box expressions?
Summary of the all available information
In the hoarier days space-like characters (spaces, newlines, tabs) inside strings were interpreted on input in an odd way: for example single newlines ...
10
votes
Accepted
Run several input cells in parallel
You don't have to write all your code within ParallelSubmit. You can wrap your code in Module or ...
10
votes
Accepted
Increasing notebook magnification pushes output onto a new line
You can increase the CellMargins for the styles "Input" and "Output" in your style sheet to accommodate the increased size of the cell labels. For example, the ...
10
votes
Accepted
Is there a way to obtain the time when an input was executed in a notebook?
Update
It turns out that there is a much simpler method than my previous answer. If you need the actual cell label value, than I think messing around with the ...
10
votes
Accepted
How insert into Text cell chevron symbols used for Inline GroupOpener icons?
Those symbols are in fact special characters:
Row@{"\:f442", "\:f443"}
10
votes
Accepted
A way to contract input in Mathematica
From comments, these are the two options
Use cell/open/close
Use Iconize, as suggested by Carl Lange, which I think is a better option, since you still see the LHS of the assignment and so know what ...
9
votes
Any way to make my equations look better, more Latex like?
You can use MaTeX to get $\LaTeX$ formatting directly:
MaTeX["\\frac{1}{N}{\\sum _{i=1}^N \\frac{\\tilde{x}_j^i(k|k)}{\\sqrt{P_{\\text{jj}} (k|k)}}}"]
...
9
votes
Accepted
Notebook cells space on disk profiler
Here is another try, this time more close to what you actually wanted: It generates a list of buttons for the largest cells (button is labeled with size in kB). If you press a button, the ...
9
votes
Syntax highlighting in text cells
According to this answer, there is a way to make an inline cell with automatic syntax highlighting. For example we can create a "Text" cell containing an inline <...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cells × 432notebooks × 208
front-end × 158
stylesheet × 54
style × 33
customization × 31
options × 26
formatting × 25
evaluation × 23
bugs × 15
output-formatting × 15
dynamic × 14
boxes × 13
printing × 12
export × 11
gui-construction × 11
keyboard × 11
output × 10
display × 8
document-creation × 8
docked-cell × 8
programming × 7
slideshows × 7
initialization × 7
string-manipulation × 6