[wd_asp elements=’search’ ratio=’100%’ id=1]

Configuring SublimeLinter Plugin to use PHP (Sublime text3)

22nd January 2014

Sublime Text

Sublime text category icon

install submlimelinter
install sublimelinter-jshint
install by using a command line installer ), I used ‘git bash’ “npm install -g jshint”
after that’s installed…
Make sure you have Node.js installed.
Make sure PHP is in your environment path

Then restart computer and you should be good to go….this took 5 hours to get right…!
extra help and good video how to setup sublimelinter
Go to Preferences >> Package settings >> SublimeLinter >> Setting user
and paste the following (Change line 37, Mike is my username, replace for yours)

{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"csslint": {
"@disable": false,
"args": [],
"errors": "",
"excludes": [],
"ignore": "",
"warnings": ""
},
"jshint": {
"@disable": false,
"args": [],
"excludes": []
},
"php": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": [
"C:/Users/Mike/AppData/Roaming/npm"
]
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"css": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}

OLD sublime text 2 instructions

{

"sublimelinter_executable_map":
{
"javascript":"C:/Program Files/nodejs/node.exe",
"css":"C:/Program Files/nodejs/node.exe",
"php":"C:/wamp/bin/php/php5.4.3/php.exe"
},

"sublimelinter_mark_style": "outline",

"jshint_options":
{
// To fix column positions for JSHint errors you may want to add "indent": 1 to your
// **User** "jshint_options". This issue affects users with tabs for indentation.
// This fix was reverted due to a conflict with using the "white": true option.
// "indent": 1,
"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": false,
"sub": false
}
}