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?– muruApr 22, 2015 at 14:06
-
never used it before so if you have some documentation to look at I will give it a shot– user9447Apr 22, 2015 at 14:07
2 Answers
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.
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