GithubHelp home page GithubHelp logo

Comments (3)

jlelong avatar jlelong commented on September 24, 2024 1

@harrysw1729 @James-Yu

Even if it looked a good idea at first sight, I think this is actually a bad idea.

Once delimiters are declared as a pair, we loose complete control of the highlighting, which is automatically handled by VS Code, when editor.bracketPairColorization.enabled is set.

I made an attempt in https://github.com/jlelong/vscode-latex-basics/tree/42_escaped_parens_pair

Capture d’écran 2023-02-01 à 08 28 01

Note the following inconsistencies

  • The pair $ ... $ has the same scope as \(...\)but it is highlighted differently because $...$ is not declared as a bracket pair.
  • The color of \(...\) depends on its nesting level.

I think the cons are really out weighting the pros. So, I am closing this issue.

from vscode-latex-basics.

RedCMD avatar RedCMD commented on September 24, 2024 1

vscode is about to add the option to disable colouring on bracket pairs
microsoft/vscode#170497

from vscode-latex-basics.

jlelong avatar jlelong commented on September 24, 2024

@RedCMD Thanks for the link. I will keep an eye on it to see how to best modify our language configuration files.

from vscode-latex-basics.

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.