vscode-ultra-math-preview icon indicating copy to clipboard operation
vscode-ultra-math-preview copied to clipboard

Which line would i need to change to make it work in every file-extension?

Open martinpflaum opened this issue 2 years ago • 3 comments

Hey, I really like ur plugin! currently its only working in .tex files. I want to also use it in c++ as a comment.

Which line would i need to change to make it work in every file-extension?

martinpflaum avatar Oct 26 '22 18:10 martinpflaum

+1

KKKKeybird avatar Oct 29 '22 04:10 KKKKeybird

would be awesome to have the option to change when this extension should be active.:)) - i personaly would love to have latex comments in c++ or python. https://github.com/OrangeX4/Latex-Sympy-Calculator/issues/18 other latex extensions also are active in none .tex files :)

martinpflaum avatar Oct 29 '22 17:10 martinpflaum

Just a pointer for future me or someone else: I guess the language is configured in src/util/get-scopes.js

function getMathScope(document, position) { if (!document.languageId.match(/latex|markdown/)) return undefined

One could probably just add other languages, or remove this part. At the moment I don't have time to test this theory. Anyone game? Otherwise, I might come back to this at some point.

huoxiaoyao avatar Sep 28 '23 09:09 huoxiaoyao