开发者

How do you spell check JSP files in your application?

I need to run spell check on jsps in our enterprise apps. I want the spell checker to ignore the html/css/javascript/jsp/java keywords and check on regu开发者_如何学Clar English labels. Is there an API or Perl/Unix script way of doing this? I don't want to open each jsp in MS-Word to do that check.


If use have free time, I think better way is to write your own spell checking tool.

Please check out following link. How to Write a Spelling Corrector

That article has implemented a spell checker in Python.

Also if you are using eclipse, it has an inbuilt spell checker.


It's not exactly what you're asking for, but you can enable spell checking in Eclipse IDE (which will ignore tags and reserved keywords and apply only on your text). Maybe it can help...

The option is located in General\Editors\Text Editors\Spelling.


Depending on your IDE, spell check might already be included.

And usually for this kind of situation, properties files are used to contain the text, which allows to run the spell check on properties files only.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜