Anthony Campbell wrote:
On 15 Oct 2006, A.J.Mechelynck wrote:
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.


It just says "spell"

Then spell checking mode is on, even though you don't see its highlights.


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.)

I'm using the Debian gtk version (7.0). It happens both with console and
gvim.

Bram suggests emailing the author of the html.vim file, which I've done.
All other syntax files work as expected.

Anthony


- Which version of the HTML syntax script are you using? By doing

        :view $VIMRUNTIME/syntax/html.vim

you'll see the date near the top. Mine is dated 2006 Jun 19; if yours is older than that, you can try downloading up-to-date runtime files from ftp://ftp.vim.org/pub/vim/runtime/ (except its dos/ subdirectory).

- If you are willing to compile an up-to-date version yourself (and, if it works, uninstall the Debian Vim), it might help (but you need a "development" version of every package used by Vim for that). See my howto page http://users.skynet.be/antoine.mechelynck/vim/compunix.htm for further info if you want to try this. If you do, you don't need to uninstall the Debian Vim until you have compiled your own version, seen that it works from where the "make" run put it (on my system it's /root/.build/vim/vim70/src/), and are ready to "make install".

- Have you checked all parts of HTML body text (I mean, purposely misspelling something in a comment, in non-comment text outside of all tags except <HTML><BODY>, inside of some additional tags, ...)?

- Are you using a color scheme? If you are, try removing it, e.g. by setting

        :colorscheme default

after starting gvim.

- Other than that I'm at the end of my wits.


Best regards,
Tony.

Reply via email to