2

I use Kile as my Latex editor. I really like Kile, but one of the things that I do find unbearable is the fact that does not seem to be a line or a command to force the spell checker to ignore a certain piece of text, like a \todo{text} tag written in a foreign language.

Is there any solution for this?

3

It's indeed the case that you cannot do this through Kile. Spellchecking is done by the editor component itself, which happens to be Kate Part. If text parts should not be spell checked, then you have to modify your latex.xml file.

The details were initially posted here. How to write or modify your syntax highlighting file is described in detail here. In short, you could add a rule that matches \todo{ that switches into another context. In this context, use itemDatas for which you set spellChecking="false". When you detect the character '}', #pop the context again.

Similarly, looking at my latex.xml, the itemData "Comments" already has the attribute spellChecking="false". So maybe you can also get a newer latex.xml hightlighting file or your distribution/Kile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.