Questions tagged [syntax-highlighting]
Questions about highlighting for Mathematica input in the Mathematica front-end, and Wolfram Workbench.
100
questions
4
votes
1
answer
61
views
$ContextAliases and symbol color
The example below shows that the symbol test`MyFunction is still in blue, which suggests that it is not defined. The color is defined in menu Edit > Preferences&...
9
votes
1
answer
540
views
Is it possible to make a custom syntax coloring for "=", "==", and "==="?
I have made this type mistake so many times:
Which[a=b,expr1,True,expr2]
as opposed to the intended but still correct syntax
...
5
votes
1
answer
232
views
Incorrect syntax highlighting? "Variables made special by use in arguments" not working
This example is obviously not useful on its own, but it will cover everything I actually need to know for a more complicated function I'm making.
The example is to recreate the ...
1
vote
1
answer
54
views
ClearAll required twice on a symbol with SyntaxInformation
SyntaxInformation[f] = {"ArgumentsPattern" -> {}};
f[] := 0;
After one ClearAll[f] or ...
6
votes
1
answer
178
views
How to detect unused local variables?
I have some code (that I did not write) that has many unused local variables in Modules. I would like to clean this up. Is there any automated way to do this or to make it more clear that a local ...
2
votes
0
answers
64
views
Syntax highlighting for own functions only for certain symbols
For simplicity, let's say I have defined my own function f that takes in exactly one input argument which is of the Symbol type ...
0
votes
0
answers
23
views
Delete exit comment on the left, and increase menu letter size,Any way to solve the problem?
I have 2 problems, I need to delete the output comments of a special calculation and also see if there is a way to please the letters of the MMA menu, I have searched and read but it has not been ...
0
votes
3
answers
888
views
Saving a notebook as PDF not working
I'm trying to save the notebook as PDF with working. I tried all methods in old threads but nothing works.
Does anyone know how to make this work?
(version 12.0.0.0, windows 64-bit)
...
1
vote
0
answers
39
views
Syntax highlighting for Symbolized variables in Solve
This is a duplicate of Syntax colouring when using Symbolize, but that post is almost eight years old and hasn't been active in almost four years.
Is it possible to get normal syntax highlighting for ...
11
votes
1
answer
241
views
Proper Syntax highlighting for multi-argument With?
For the case of Block and Module one can choose to define values in the body for the variable names being scoped. So there is no ...
1
vote
1
answer
425
views
Is it possible to make a notebook behave like text editor such as Sublime Text with regard to code formatting?
Can Mathematica, natively or otherwise, behave more like a conventional text editing tool such as Sublime Text or Notepad++ when it comes to code formatting and syntax highlighting?
I have seen some ...
19
votes
1
answer
181
views
Why does setting SyntaxInformation add a definition to DefaultValues
Before setting any definitions to the symbol f, the DefaultValues of f is empty:
...
2
votes
1
answer
135
views
How can we change the Highlighted elements to a specific color?
edit I don't want highlighting, only font color. Sorry.
I want the Highlighted elements to be Blue Font. I can't understand this suggested previous post.
When I ...
2
votes
1
answer
52
views
Code not working when I'm breaking it up into different lines
The following code works perfectly
For[i=1,i<4,i++,Print[i]]
However, when I break this into different lines, it stops working. Moreover, the braces appear to ...
0
votes
0
answers
141
views
Syntax-coloring specific to function heads
I've been playing around a lot with making a new style sheet with corresponding syntax colorings in the past few days, but I'm finding the default options pretty lacking. While you can use the ...