blob: 5f9f16a0e80aa7f9b68a05b9180d4553e39a0dd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
The object constructor takes a 'spellcommand' argument. This has to be
some ispell compatible program, like aspell. Optionally, it also takes a
color to highlight mispelled words.
The only method on the object is check_html, which takes a reference to
the text to check and returns a bunch of HTML highlighting misspellings
and showing suggestions. If it returns nothing, then there no misspellings
found.
WWW: http://livejournal.com/code/spellcheck/
|