Forum Moderators: coopster

Message Too Old, No Replies

Spell checking your .php files?

spell check

         

eltreno

1:47 pm on Dec 24, 2010 (gmt 0)

10+ Year Member



Hi all,

I have searched but found nothing.

I want to search through a php sites .php files for spelling errors.

Does anyone know of a program (preferable linux but win will do as well) that will spell check .php files

I know in linux we can use:
spell *.php

however you basically end up with your variables etc etc being shown.

So I need something that will ignore php code and be smart enough to find spelling errors in standard text and also quoted text in echos etc

Any ideas?

Thanks

rainborick

3:19 pm on Dec 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If there is a specialized spell-checker for PHP code, I haven't heard of it. I think you might have to create a system for capturing the text from the HTML that your PHP scripts generate, and feeding that to a more conventional spell-checker somehow.

coopster

12:24 pm on Dec 25, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Eclipse is an open source, cross-platform IDE that has a spell checking feature built into the color-coded, syntax-checking interface. Have a look and see if it meets your needs.