-
Notifications
You must be signed in to change notification settings - Fork 391
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
Create an "opaque" comment macro to hide part of the code to the syntax checker. (low priority!) #2171
Comments
VimTeX has a similar feature for syntax highlighting, see
It could be relevant to also support the same magic comment as Overleaf uses. Do you thank that is necessary? Also: do you find a need for something in addition to this from VimTeX side? |
Ah, I did not know of that feature! Sorry for the noise. |
No problem! The overleaf mechanism still looks nice to support from VimTeX as well? Afterall, it is quite easy to work locally towards Overleaf through the git integration... |
Yes --- that could be nice! I work a lot locally with the overleaf-github link (so I can edit with |
Done! |
Thanks! |
There are, in the wild, "funny" templates that do very strange things; sometimes it would be useful to mark part of your text/code as invisible for the syntax highlighter parser. I will male just an example here...
For example, the MDPI journal templates issues a
\begin{paracol}{2}
which is hidden into the\begin{document}
command. At a later stage in the document, you are required to issue a\end{paracol}
(just before wide figures, for example, and before bibliography); see https://tex.stackexchange.com/questions/606008/wide-table-using-mdpi-template/606032#606032. I am unable to produce a small example, but this thing for example disrupts the backward search from PDF in myvimtex
.But in general, my point is that this is often a smash-a-mole thing, similar things can appear everywhere and it is impossible to take into account all the times some package makes an utterly ugly thing like that.
Overleaf has a nice mechanism for this: everything between the two magic comments
is completely ignored by code check, syntax highlight, etc.
Wouldn't that be a nice "last-resort" thing to have?
The text was updated successfully, but these errors were encountered: