views:

172

answers:

3

I need a source code spell-checker. Of course there is a closed source ones but I'm looking for an open source solution, That can spell check html files, php source codes any further types would be better.

I also thought about making my own since there is a good libraries for spell checking, So what features you think it's good to be added to this application?

I have a very basic imagination of it:

  • Just Highlight the error words and give you suggestions without any actual modifying for the source code.
  • Support local and remote files
  • Spell check only certain parts of code like string literals (between quotations)
  • choosing between dictionaries.
  • Using the apell lib or any equivalent one.

Edit: It should have a GUI and should be cross-platform.

+2  A: 

Most of the IDEs support spell-checking. I know Eclipse does. You can always run it through ispell

discovlad
+3  A: 

Emacs has a minor mode called flyspell which can spellcheck comments and strings within major programming modes.

It seems to fulfil all your criteria: it highlights misspelled words, gives you suggestions, local and remote files (eg. over ssh) are supported, knows how to just check comments and strings, and supports multiple ISpell dictionaries.

You could even automate spell checking using elisp to run batch checking.

gavinb
+2  A: 
Pascal MARTIN
Unfortunately, this feature has been omitted from AptanaStudio!. I checked and found eSpell plugin with AptanaStudio and it's fine.
Omar Dolaimy
eSpell is not that good, it makes unnecessary refreshes and slow and don't check all the expected parts of the code like normal text inside an HTML tag.
Omar Dolaimy
If you find another great solution, let us know ! (especially, one that doesn't highlight php code as spelling errors... )
Pascal MARTIN