Flycheck is a on-the-fly syntax checking extension for GNU Emacs 24, which applies various syntax checking and linting tools to the buffer contents and highlights errors and warnings in the buffer window.
Flycheck is an on-the-fly syntax checking extension for GNU Emacs 24. It has built-in support for many programming languages, including C/C++, Coffeescript, Haskell, Javascript, PHP, Python, Ruby, LaTeX, Shell scripts, and many more, and can easily be extended with new syntax checkers.
It is available via ELPA from the popular MELPA and Marmalade archives.
For more information please consult the online manual.