The syntax-highlighting tag has no wiki summary.
19
votes
1answer
646 views
Customizing syntax highlighting for private cell styles
Is there any way to set up a cell style with a particular syntax highlighting?
For example, I'd like to have a CProgram cell to write in blue the C special words.
I have done it by setting ...
23
votes
2answers
632 views
Is it possible to change the colors of the highlighted code in the Mathematica frontend?
With Format -> Edit Stylesheet... it is possible to adjust text-properties, text-colors, formatting of equations, etc of a notebook and to use this style-definitions again by installing it as ...
39
votes
2answers
930 views
Syntax highlighting for your own functions
Mathematica has a useful feature that for functions and special constructs getting passed local variables (for example Minimize or ...
23
votes
2answers
668 views
Saving a notebook as PDF, preserving syntax highlighting
Currently, one may save notebooks as PDFs from the menu by Save As... and then selecting PDF (on a Mac, I imagine it is similar on other OSs). However, the ...
8
votes
2answers
259 views
How can one define an infix operator with an arbitrary unicode character?
You can setup "UsefulFunction[a, b]" to use custom infix notation "a [LeftRightArrow] b" as follows:
...
13
votes
1answer
501 views
Why are some function names red?
I need to evaluate
Needs["GraphUtilities`"]
before I can use functions such as GraphPath[]. When I do so, some functions get ...
7
votes
1answer
199 views
No Syntax Highlighting of Package Functions
Lately, my installation of Mathematica has decided not to highlight any symbols loaded from packages. The picture below is a good representation of this:
where after loading both ...
6
votes
3answers
143 views
How to program a F::argx message?
How useful is it to program a user-built function in a package to produce a red warning message F::argx if you give the wrong number of arguments to that function? ...
3
votes
2answers
124 views
Why does the syntax highlighter color a local symbol red inside DynamicModule?
I am adding a Module inside DynamicModule here is an example (thanks to @rm-rf for this simple example)
...