Thursday, October 15, 2020

Re: Fwd: Selective spellchecking

BPJ wrote:
> Another case of me not finding the relevant parts/tags in the
> documentation:
>
> Where can I find out how to set things up so that spell checking
> ignores markup, or conversely so that it ignores everything except
> comments? I'm sure it works through associating spell check with
> certain highlight groups — I just can't find it!
>
That's a function of the syntax highlighting files; roughly:  syntax
[match|region] SomeNameHere patterns/start=pattern/end=pattern ...
contains=@Spell

So one specifies  that a syntax match or region will support spell checking.

Regards,
Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/d0ed781e-6208-9693-be3f-6ce5441b6149%40drchip.org.

No comments:

Post a Comment