GithubHelp home page GithubHelp logo

Comments (8)

ditek avatar ditek commented on June 2, 2024

Thanks @michaelblyons for fixing the title. Now that I know which package is the problem I think I know how to fix it and I'm happy to create a PR. I followed the README instructions to create a directory junction on Windows, but it doesn't seem like my changes are being reflected in Sublime. Is it enough to restart the program or I need to force reloading the packages somehow?

from packages.

deathaxe avatar deathaxe commented on June 2, 2024

LaTeX is excluded from being highlighted in fenced codeblocks by intent, as it also supports fenced code-block like expressions, which used to easily cause maximum allowed complexity to be exceeded due to including foreign syntaxes.

It shouldn't be an issue anymore, now that ST loads embedded syntaxes lazily.

from packages.

ditek avatar ditek commented on June 2, 2024

Could you clarify? By "it shouldn't be an issue anymore", do you mean that it no longer needs to be excluded?

from packages.

deathaxe avatar deathaxe commented on June 2, 2024

Exactly.

from packages.

ditek avatar ditek commented on June 2, 2024

Great! So should I just prepare a PR with the fix?
In that case I would appreciate a quick advice on how to get changes to the package to take effect. A simple Sublime restart doesn't seem to do the trick. I followed the relevant instructions in the README to create a directory junction.
(I tried a simple test of removing the Python highlighting definitions which still worked after restart)

from packages.

michaelblyons avatar michaelblyons commented on June 2, 2024

Deleting the file just means the default one is used. You could keep the Python file there and empty out its main context of the matches and includes.

from packages.

ditek avatar ditek commented on June 2, 2024

Yes, that's what I meant. I removed the Python part of Markdown\Code Block Syntaxes.sublime-completions file and I still got highlighting for Python blocks, meaning the changes didn't take effect. I'm wondering if it's enough to just restart Sublime Text or there is some sort of cache I need to clear.

from packages.

deathaxe avatar deathaxe commented on June 2, 2024

Creating a junction Markdown in Packages folder is enough. All files in that directory override default package. Removing completions (Code Block Syntaxes.sublime-completions) doesn't affect syntax definitions.

from packages.

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.