While learning some programming language, I make notes in MS Word as I refer to various books and other such resources. As it happens, I also add code to my notes.
To keep things clean, I have created a style named "Code" and for this style I have selected the option "Do not check spelling or grammar" in the "Language" section of the Format options (all in Modify Style dialog box).
However, Word doesn't seem to be obeying this option and it keeps checking the spelling errors and shows the red wiggly/wavy underlines all over the place in my code.
I have already closed and opened MS Word several times; I also have an old Word document with lot of code and with similar style set-up, and that document also has same problem now (it was originally created in Word 2010 and at that time it worked fine).
Other than above, spell and grammar check ran normally in all documents I opened. It is just that at present MS Word doesnt' seem to respect the style option.
Update: I am running Office 365 Home on Windows 10 Home on a desktop computer.