Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 121

Questions about highlighting for Mathematica input in the Mathematica front-end, and Wolfram Workbench.

2 votes

Why the coloring in Block construct?

The coloring is there to tell you of a possible conflict. Your function will be replacing var in both the Block and RuleDelayed with whatever you use as the second term of the first argument. It's p …
Mr.Wizard's user avatar
  • 273k
4 votes
Accepted

Nested list of patterns in SyntaxInformation "ArgumentsPattern"

The documentation says: Your form is not one of these so it cannot be expected to work. (It would be nice if it did of course.) I cannot think of a way to get the syntax highlighting you seek, gi …
Mr.Wizard's user avatar
  • 273k
11 votes
Accepted

No Syntax Highlighting of Package Functions

I don't know what is causing your problem, but presumably you can still specially color the symbols in those contexts as I do. For example: SetOptions[$FrontEnd, AutoStyleOptions -> {"SymbolConte …
Mr.Wizard's user avatar
  • 273k
5 votes

Output code not highlighted when used as input

It has been like this for a long time, hasn't it? At least since version 7. I always assumed that InputForm (the Head, not the format) wasn't really intended for reentry, though since it does mostly …
Mr.Wizard's user avatar
  • 273k
25 votes

Why is this semicolon in red?

A bit of historic background Before Mathematica version 6 graphics were produced as a side-effect much as Print works now. In fact you can load this old system using: << Version5`Graphics` Now yo …
Mr.Wizard's user avatar
  • 273k
2 votes
Accepted

Overloading ClearAll[] to take no arguments

In version 10 under Windows I am unable to reproduce the problem you describe: Unprotect[ClearAll]; ClearAll[] := ClearAll["Global`*"] SyntaxInformation[ClearAll] = {"ArgumentsPattern" -> {___}}; …
Mr.Wizard's user avatar
  • 273k
2 votes

How to robustly apply ToBoxes to a Dynamic expression?

Pardon me if this is unjustifiably curt but I don't see how this problem is different from many others that result from placing Dynamic too deep within an expression. Move the Dynamic to the outside …
Mr.Wizard's user avatar
  • 273k
26 votes

How to program a F::argx message?

The large addendum on handling multiple messages as built-ins do has been moved to a separate post; please see the link below for advanced message handling options. How to check the style and number …
Mr.Wizard's user avatar
  • 273k
25 votes
Accepted

How can one define an infix operator with an arbitrary unicode character?

You can get the syntax highlighting that you desire by modifying your UnicodeCharacters.tr file (path given by System`Dump`unicodeCharactersTR), though I don't know how advisable this practice is. Fo …
Mr.Wizard's user avatar
  • 273k
3 votes

How to prevent front end from suggesting Symbol option names (when actually String), and fro...

By convention option names are Symbols, and String equivalents are accepted. For example all the formal Options of Plot are Symbols: Head /@ First /@ Options[Plot] // Tally {{Symbol, 60}} Ye …
Mr.Wizard's user avatar
  • 273k