You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most syntax checking plugins have an option to ignore a rule for just one line. I'm writing a novel and a character has a speech pattern where they swallow 'h' sounds. This is to be indicated to the user like this:
This gets flagged as a close quote without an open quote, which is usually correct but not correct for this case. I was originally going to file an issue to try to get you to handle this, but I realized that that is probably very difficult, and the larger problem is that there is no way to say "I meant it" quickly and easily without turning off the validation for the entire file
Since LaTeX supports comments it should be very easy to insert something like
% noinspection umatchedCloseQuote
This quote insertion to toggle a syntax rule for a single line is a common practice in many syntax checkers for programming languages. Java example:
In your screenshot one of the menu options is 'suppress for environment' or for the whole file, which is probably what you want in this case. Documentation: https://hannah-sten.github.io/TeXiFy-IDEA/inspections.html#suppress-inspections
(Personally I would just disable the inspection for the whole project, I mean if you're writing a whole novel in LaTeX you probably know how LaTeX quotes work!)
However, there is indeed no option yet to suppress it for one line of text only, but I think this should be possible to implement.
Most syntax checking plugins have an option to ignore a rule for just one line. I'm writing a novel and a character has a speech pattern where they swallow 'h' sounds. This is to be indicated to the user like this:
This gets flagged as a close quote without an open quote, which is usually correct but not correct for this case. I was originally going to file an issue to try to get you to handle this, but I realized that that is probably very difficult, and the larger problem is that there is no way to say "I meant it" quickly and easily without turning off the validation for the entire file
Since LaTeX supports comments it should be very easy to insert something like
This quote insertion to toggle a syntax rule for a single line is a common practice in many syntax checkers for programming languages. Java example:
I'm aware of https://hannah-sten.github.io/TeXiFy-IDEA/editing-a-latex-file.html#switching-parser-off-and-on but this request is for a quick action that applies a single line syntax for suspending the checking of just one rule, rather than suspending the whole parser for a block. (block suspend a single rule would also be interesting in some cases)
I also want to point out that without resolving this warning, the f2 key will not move on to lower priority warnings like misspellings.
The text was updated successfully, but these errors were encountered: