To stop Word from spell checking your code (or any particular section for that matter), create a new style and follow these instructions:
http://www.pnotepad.org/devlog/archives/000113.html