Anthony Campbell wrote:
On 13 Oct 2006, A.J.Mechelynck wrote:
When I set 'spell', text (but not tag names or attributes) is spell-checked in my HTML files. If I ":setlocal ft=text", everything is spell-checked, and ":setlocal ft=html" brings it back to text-only.

What does it say when you do

        :verbose set spell?

(with the question mark), the active cursor being in a non-spell-checked HTML file?



After some more research, I find that if syntax is "on", then spell does
not highlight any errors in html files. If it is "off", it does. This
seems like a bug to me. At least, it's not what I want.

Anthony


Works for me -- the curly highlighting is in addition to HTML syntax highlights. For instance between <A HREF=...> and </A> I notice bluish-grey ("slateblue" they call it) text with straight underline in the same colour (for HTML link text) and also with curly underline in red (for spelling error).

However I notice that (with 'spell' on and 'spelllang' set to "fr"), perfectly valid French words are highlighted because one or more accented letters is replaced by an entity: "donné" is a valid French word, but the spell checker highlights "donn" in "donn&eacute;" as an error. Similarly "d&eacute;sappoint&eacute;s" (for "désappointés").

After setting syntax off then on clears your spell checking highlights, you should (I repeat) place the active cursor in the file where syntax highlights have replaced spell highlights and use ":verbose set spell?" with question mark. If 'spell' has been turned off, it should tell you which script did it.

Maybe you said it in an earlier post but I don't remember it: are you using gvim or Console Vim? (I am using gvim 7.0.131, huge version with GTK2/Gnome GUI, running on Novell-SuSE Linux Professional 9.3.)


Best regards,
Tony.

Reply via email to