How do I turn off the red and green lines that appear under the grammer and spelling errors??
Define a new style for code - set an appropriate font and line spacing etc and turn off spell checking for the style. Apply this style to all your code examples.