2

I have been trying to find a way to spellcheck my HTML file's content in Sublime for quality control. I have referenced several articles referring to aspell but after installation and trying to run through HTML files I am having to strip out all tags and its complicated trying to go through all HTML files on a package/project level. Is there a spellcheck tool that I can script with in the terminal that will ignore the tags and check the content? Any other ideas for better implementation I am for it

  • Care to use vim? – muru Apr 22 '15 at 14:06
  • never used it before so if you have some documentation to look at I will give it a shot – DᴀʀᴛʜVᴀᴅᴇʀ Apr 22 '15 at 14:07
1

Vim's spell checking is smart enough to distinguish between HTML tags and their contents:

enter image description here

Spell checking is not enabled by default, and can be enabled by:

:set spell

The documentation for spell checking in Vim can be browsed using :help spell.


If you have never use Vim before, it can be a bit ... daunting. First install a more full-featured version:

sudo apt-get install vim-gnome

Then run gvimtutor to learn the basics of Vim.

|improve this answer|||||
0

You can use aspell in the command line:

aspell -H check your_file.html

the -H option makes it HTML aware.

if you don't have it just install by:

sudo apt install aspell
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.