|
TextMate: Spell Checking Comments (and String Literals) Whenever I can, I use a spellchecker. Mainly because there are a few dozen words I consistently get wrong (ironically, this includes the word
So I use a spellchecker. Except, of course, in source code, because spell checking source code is an excerise in false positives.
Until today, when I figured out how to make <%html.getlink("TextMate", "http://macromates.com/")%> spell check comments (and string values, which it already does). As an extra bonus, the settings outlined below make these changes for every language bundle that inherits from the Source bundle: meaning that your C++ comments/strings will get spell checked right along with your Python comments/strings, along with your JavaScript comments/strings, along with your... you get the idea.
Your comments (as well as string values) should now be spell checked. You will of course get some false positives, since sometimes variable names are mentioned in comments - but it saves you from the general embarrassment of spelling errors in comments/string values. |