你好!看了你php语法检查,确实很有用谢谢!
但是总觉得没吃都要调用cmd,有点丑,可否用QUICKFIX窗口输出
我在网上看了一篇文章 ,他是用quickfix输出,但是我试了一下,不行。
代码如下,你能否改改。谢谢
“””””””””””””””””””””””””””””””””””””””””””””””””””””
” => Check PHP Syntax using makeprg
“””””””””””””””””””””””””””””””””””””””””””””””””””””
function! PhpCheckSyntax()
” Check php syntax
setlocal makeprg=\”C:\php5\php.exe\”\ -l\ -n\ -d\ html_errors=off
” Set shellpipe
setlocal shellpipe=>
” Use error format for parsing PHP error output
setlocal errorformat=%m\ in\ %f\ on\ line\ %l
make %
endfunction
” Perform :PhpCheckSyntax()
map :call PhpCheckSyntax()
imap :call PhpCheckSyntax()