I currently use the following to enable flyspellflyspell
in prog-modeprog-mode
:
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
This checks spelling automatically in comments and strings. However, I would like to disable spell checking in strings.
How can I enable flyspell for comments but not strings?How can I enable flyspell
for comments but not strings?