Questions tagged [syntax-highlighting]
Questions about highlighting for Mathematica input in the Mathematica front-end, and Wolfram Workbench.
107 questions
0
votes
1
answer
94
views
How can I apply Mathematica appearance settings to the Wolfram Language extension in VS Code?
I'm trying to copy the appearance settings from Mathematica to the Wolfram Language extension in VS Code by adding the textMateRules below. However, it doesn't work ...
5
votes
1
answer
164
views
Change user-assigned symbol syntax coloring
I would like user-assigned symbols to be colored dark blue instead of black, to distinguish them from built-in symbols. Is this possible? I wasn't able to find any option available for this in the ...
1
vote
0
answers
120
views
How to Style certain words in ExternalLanguage cells?
I know I can Style all content of a cell using:
...
2
votes
1
answer
139
views
Can I make missing semicolons in Module more obvious in the front end?
I use Module a lot to localize symbols. Occasionally I will forget a semicolon on one of the lines in the middle, and don't notice until I get flooded with Tag ...
0
votes
0
answers
82
views
Front end fails to turn symbol black after definition, how to fix and why is it happening?
I occasionally get issues where I'm doing a expensive calculation and the symbols I'm assigning the outputs to do not become black after assignment. The value is correctly updated, but the symbol ...
3
votes
1
answer
153
views
Cursor caret symbol or red curly brackets in the code
There are situations that the caret cursor symbol ^ remains in the code like if the code is not finished and something has to be added in its position yet the code ...
10
votes
1
answer
436
views
How can I disable highlighting of matching symbols in expression in version 14.1?
V 14.1 seems to have introduced another annoying eye candy feature. When the cursor is next to a symbol in an expression, all matching symbols become dark blue at same time.
I find this distracting. ...
4
votes
1
answer
96
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&...
10
votes
1
answer
614
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
295
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
2
answers
146
views
ClearAll required twice on a symbol with SyntaxInformation
SyntaxInformation[f] = {"ArgumentsPattern" -> {}};
f[] := 0;
After one ClearAll[f] or ...
7
votes
1
answer
261
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
88
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
47
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
1k
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)
...