Search Results
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 |
Questions about highlighting for Mathematica input in the Mathematica front-end, and Wolfram Workbench.
12
votes
1
answer
207
views
Syntax information "ArgumentsPattern" for function of function?
Is is possible to write SyntaxInformation of "ArgumentsPattern" for functions of the form:
f[a,b][x,y,z]
That is, I get syntax coloring such that the first set of square braces takes exactly 2 arg …
7
votes
2
answers
156
views
Nested list of patterns in SyntaxInformation "ArgumentsPattern"
I have a function with the following input structure:
f[{{a1, n1}, {a2, n2}...}, {i1, i2,...}]
The first argument is a List of Lists, each with exactly two elements, and the second argument is a li …
12
votes
1
answer
228
views
Is there a syntax coloring type that highlights only when not in a list?
How do I define the syntax coloring of local variable of function myfunc so that it only colors the variable that is not in a List?
For example,
SyntaxInformation[myfunc] = {"LocalVariables" -> {"In …
4
votes
1
answer
131
views
Why does SyntaxInformation "ColorEqualSigns" color like wrong options?
In my copy of Mathematica 11.1,
SyntaxInformation[f] = {"ColorEqualSigns" -> {1, 1}}
colors like wrong options:
How do I make it not color like wrong options?
6
votes
2
answers
169
views
How to prevent front end from suggesting Symbol option names (when actually String), and fro...
Help!
I am writing a package with a function which takes lots and lots of different options which are Strings. When used, the front end autocompletion is suggesting them in Symbol form. If the resu …
19
votes
1
answer
183
views
Why does setting SyntaxInformation add a definition to DefaultValues
Before setting any definitions to the symbol f, the DefaultValues of f is empty:
DefaultValues[f]
(* {} *)
Define SyntaxInformation for f:
SyntaxInformation[f] = {"ArgumentsPattern" -> {_, _}};
…