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
Asked
Active
Viewed 1,390 times
4
user9447
- 1,945
- 5
- 27
- 41
2 Answers
2
Vim's spell checking is smart enough to distinguish between HTML tags and their contents:

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.
muru
- 207,228
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
Alan Bogu
- 111