[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] Re: Problem using aspell on PHP Files
From:       Christoph =?utf-8?q?Hinterm=C3=BCller?= <christoph.hintermueller () fusemail ! com>
Date:       2006-09-13 19:44:01
Message-ID: 200609132144.01618.christoph.hintermueller () fusemail ! com
[Download RAW message or body]

Hi
Am Mittwoch, 13. September 2006 16:12 schrieb Jay Rajput:
> I have got the answer for the first question:
>
> I can simply use
>
> aspell --mode=tex -c <filename>
>
Why do you use the tex mode for a php file. Better use
the 
--rem-filter=sgml 
option to prevent aspell from loading the html/sgml filter.
Or the brute force option
--rem-all-filter (afaik)


> Now the problem is how to spell check only the comments in the
> code. I desperately needs to find the answer of this.
>
Hm I'd suggest to use the context filter 

--add-filter=context option

and set the delimiters to the ones used for php which afaik should be 
identical to the ones used for c/c++ which means that there is 
nothing to change. Per default the context filter should hide all the 
code from aspell except from the comments and the literal strings.

This does not work if you use an aspell version prior to 0.60.x .

cu
Xris




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic