sublimetext2 - SublimeLinter for PHP -


i cannot sublimelinter work sublime text 2. have node.js installed , wamp installed , user settings sublimelinter follows:

{     "sublimelinter_executable_map":     {         "javascript":"c:/program files/nodejs/node.exe",         "css":"c:/program files/nodejs/node.exe",         "php":"c:/wamp/bin/php/php5.3.13/php.exe"     } } 

i have created file on desktop called 'cool.php' following code:

<?php function hel() {     error-> } ?> 

but nothing shows tell me 'error->' incorrect. doing wrong?

side note: in readme of sublimelinter says '* php - syntax check via php -l'. mean?

i had similar issue on linux caused st2 opening php files different file type.

to fix it, open .php file click view > syntax > open current extension as... > php.

it might need use double backslash instead of forward slashes:

{     "sublimelinter_executable_map":     {         "javascript":"c:\\program files\\nodejs\\node.exe",         "css":"c:\\program files\\nodejs\\node.exe",         "php":"c:\\wamp\\bin\\php\\php5.3.13\\php.exe"     } } 

i'm not sure if matters windows settings use double backslashes , work.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -