-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax colouring for robust-externalize #4145
Comments
ChkTeX issues should not be reported here. As to the highlighting, it seems that the package essentially makes any languages embeddable in latex, which may not be properly handled by the syntax highlighting engine vscode is using. @jlelong do you think we may support this feature? |
Double checked the package and noted that the environment names are indeed provided by |
I understand. But can the highlighting not at least be disabled for the |
May you kindly give insights on this request? @jlelong |
Sorry for missing the issue in the first place. The documentation of From what I understand, there are two different levels of support:
1 is easy. I need to think of 2 more in depth. More precisely, it really depends on the syntax used by Btw, the latex syntax is developed at https://github.com/jlelong/vscode-latex-basics |
No problem! Thank you for coming back. Yeah, it is a flexible package. There are a lot of possibilities to set things up. But, I don't know if this problem with the started math does happen with other languages or may happen with tikz. If not and only gnuplot is the problem, then the To get the syntax right for the language inside those environments could be near impossible. There are ready made presets for some languages, python and tikz for example, but one can create ones own preset and give it any name. If the name does not contain the language, the latex configuration would have to be processed. This is as far as I understand it. I am still new to robust-externalize. |
Thanks for your interest in my package. So usually, indeed, only environments So not sure how to best handle that case if you want to support syntax highlight inside this environment. I would say that the best option would be:
|
Thanks for these explanations. Could you provide for a syntax usage description for every environment to support. VS Code syntax engine does allow to easily check the content of the line above. So looking for If I understand well, we can expect the standard syntax to be \begin{CacheMe}[language,......]
non latex code
\end{CacheMe} I should be able to incorporate this syntax (with the embedded language properly highlighted) in the current latex grammar without adding too many lines. If the language name is not the first argument of the environment, then I suggest to consider its content as verbatim. |
I see. You are quite correct except that you actually want:
Though, you might want to allow also (note the comma turned into a space)
to allow users to create presets like |
For the three others environments accepting no style, it might also be possible to check if the placeholder name starts with
|
Even though the latex syntax is developed at https://github.com/jlelong/vscode-latex-basics, I am reopening this issue to keep track of the progress. |
The support of robust-externalize, as mentioned in this issue, has been added by jlelong/vscode-latex-basics#77 |
Thank you very much for your great work! |
Pre-checks*
The Missed*
The Solution*
Anything Else?
Edit: corrected typo.
The text was updated successfully, but these errors were encountered: