Comments (3)
A lot of these questions are about VSCode in general, and not this extension specifically, but I will try to respond.
For the side note:
I googled "VSCode customize color theme" and this:
https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme
may be helpful for you.
It is an open issue for VSCode to enable different themes for different filetypes:
The different colors for UpdateTarget
are because the WL syntax highlighting has special handling of function application syntax.
Symbols like foo
in foo[]
are highlighted different than just foo
by itself.
But this does not extend to x // foo
syntax because it would be too cumbersome to implement inside the syntax highlighting rules.
It is important to understand that syntax highlighting is only an approximation to the actual semantics of the language.
No real parsing or analysis is being done; only tokens are being examined with regexes.
Attributes
is a function and HoldAll
is a constant (for lack of a better term for symbols that are not functions). That's why they are colored differently.
Square brackets have different colors because that is what VSCode does:
https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-colorization
A very useful command is available on the command palette:
Developer: Inspect Editor Tokens and Scope
This opens a popup where the cursor is and gives information about the currently selected token:
the various scopes and the specific color that it has
Also, it looks like you do not have semantic highlighting enabled.
If you turn on the setting for Wolfram: Semantic tokens, you will see things like Module
variables being colored differently and other nice additions.
from vscode-wolfram.
@bostick Thanks for feedback, indeed after posting I noticed that my problem's nature is mostly vscode related. I will try to come up with a custom theme then.
Yes, I was confused about Module variables as well because I did enable it but maybe something went of in chaos of trying to make it work.
Now I am getting somewhere:
An issue I faced is that I can't distinguish With variables/parameters from function patterns:
Btw, it became a discussion so you can close this issue at any time if you feel like it.
from vscode-wolfram.
Right, I gave both With variables/parameters and function patterns the scope of variable.parameter
.
I could certainly work to give them different scopes, since it seems like you are interested in giving them different colors (I presume).
(closing but feel free to respond)
from vscode-wolfram.
Related Issues (20)
- Blank should be a wordseparator as well HOT 1
- Support for Wolfram Engine? HOT 4
- Is the a way to export to WebAssembly from Wolfram Language? HOT 1
- Starting client failed HOT 8
- Crash while trying to select code in a saved file HOT 3
- Formatting options HOT 2
- Feature Request: Syntax Highlight for HTML inside EmbeddedHTML
- Does it work with the Wolfram Player? HOT 2
- Request: publish extension in open-vsx.org HOT 1
- Section Folding bug
- Cannot run wl files in VSCode HOT 2
- Couldn't start client Wolfram Language HOT 1
- Could you support unicode characters, just like Mathematica HOT 8
- LSP for wolfram language in VSCode jupyter notebook HOT 5
- 'Go to Definition' Support across project HOT 1
- Setting up vscode-wolfram on Mac M1 HOT 1
- A fixed upstream issue. HOT 1
- Mark Sin[1, 2] as incorrect syntax with red highlighting for 2
- Unlink from the .m file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-wolfram.