Turn off spellcheck in a paragraph style

I did a search, but couldn’t answer this question to my satisfaction. Is it true that there is no way to turn spellcheck on/off by paragraph style?

I have a style for computer code in my document, and the red lines under every word are distracting. But I don’t want to turn off spellcheck for the prose around the code.

Thanks for any pointers.

1 Like

No, it’s not possible to turn off spellcheck in a granular way, either per style or per document.

In your position, I would disable the automatic underlining and simply run the spellcheck manually at regular intervals. You could also tell the dictionary to learn at least the most frequently used code elements.

Katherine