Q: Tools to check grammar when programming I am programming in PHP and I want to check if there are any mistakes in my website and if there are, it would highlight those words which are written incorrect. Is it possible? Thank you.

A: *

*Publish your website.

*Visit it in your browser.

*Copy/paste the contents into MS Word.

*Run spelling & grammar check.


A: Many editors provide a selective kind of spell checking which ignores program constructs and spell checks only comments and parts like that. Emacs for example comes with flyspell-prog-mode which will restrict on the fly spell checking to the code comments. 
The other possibility is to run the php command line interpreter on your source files and pipe that through aspell -a to give you a summary of spelling mistakes. This is on Linux. 
As for grammar, I'm not aware of any command line tools that can do it so cutting/pasting seems to be the only way to go. 
