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,284 times
3
user9447
- 1,895
- 5
- 26
- 40
-
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 – user9447 Apr 22 '15 at 14:07
2 Answers
1
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
- 193,181
- 53
- 473
- 722
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
- 2