Spell checking in areas with the "code" style should be smart about word separation. For example, "sector_size", "sectorSize", and "SectorSize" should be spell checked the same as "sector size".
Currently my code snippets show a lot of spelling errors, which is distracting.
I don't know if applying the "code" style embeds any semantic markup in the page, or if it just applies a monospaced font, but I guess you'd need that too.
Saadry Dunkel commented
I agree adding a plugging like Notepad++ would be a great assets to this program. Whilst awaiting for it I am going to work on building one.
Christian Bellina commented
I agree with Don, I can live without code spell checking (since most of the time I'm just copying and pasting code snippets, so I don't need that to be spellchecked) but the RED LINES are so distracting....I really would like better computer code formatting please
David Lean commented
1. Highlight code section (or the page you don't want covered with red squiggles.)
2. Menu: Review -> Language => Set Proofing Language
The proofing pane should open on the Right side.
3. Pick Language "Afrikaans" or any other language that you have not installed a valid spell checker for.
The spell checker gives up & doesn't flag anything as wrong.
It doesn't seem to have any ill effect.
Suggestion to Microsoft
Given this approach works. Please consider adding a button in the Proofing menu "Disable proof on page / highlighted text". Then just map the proofing function to a No-Op.
There is little value in OneNote proofing or compiling code snippets, but huge value in not making them hard to read.
Don Cruickshank commented
I think code sections should have spell checking disabled altogether. There are just too many different programming languages and variations for a spellchecker to know about.