Linux tip, Fedora tip / howto: Disable underlining of bad syntax in ECB under emacs
Disable underlining of bad syntax in ECB under emacsECB (Emacs Code Browser) is an editing environment for emacs. It uses the semantic tool for parsing source, which underlines code that doesn't parse.
However, semantic does not have support for PHP (which is hard to begin with, since PHP files are often mixed HTML and PHP), so it tends to disapprove of a lot of syntax, leading to annoying red underlined text in the editor window.
It turns out you can disable this by running:
To disable this by default, load the file semantic-load.el from the semantic source distribution, locate line 266 (approximately, I have version 1.4.4 here), which says:
You could add a shortcut key to toggle the feature on and off by adding a line like this to your ~/.emacs file: