Git Product home page Git Product logo

Comments (3)

bostick avatar bostick commented on May 25, 2024

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:

microsoft/vscode#20652

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.

kubaPod avatar kubaPod commented on May 25, 2024

@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:

image

An issue I faced is that I can't distinguish With variables/parameters from function patterns:

image
image

Btw, it became a discussion so you can close this issue at any time if you feel like it.

from vscode-wolfram.

bostick avatar bostick commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.