Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup SublimeLinter for mac

I've been trying to setup SublimeLinter (Mac) but something must be going wrong as the php lint simply doesn't work. I've installed and removed the package many times, tried to add/remove support for php following different tutorials I've found but none worked. I thought Sublime packages were straight forward as installing and using. Am I missing something?

like image 575
WagnerMatosUK Avatar asked Mar 16 '13 16:03

WagnerMatosUK


People also ask

Does Sublime Text work on Mac?

Sublime Text can now utilize your GPU on Linux, Mac and Windows when rendering the interface. This results in a fluid UI all the way up to 8K resolutions, all while using less power than before.

Where is Sublime Text installed Mac?

Mac. To use subl, the Sublime Text bin folder needs to be added to the path. For a typical installation of Sublime Text, this will be located at /Applications/Sublime Text. app/Contents/SharedSupport/bin.

How do I enable Linter sublime?

You can quickly toggle a linter on or off. To do so: Bring up the Command Palette ( cmd+shift+p on Mac OS X, ctrl+shift+p on Linux/Windows) and type toggle , disable , or enable according to what you want to view all linters, only enabled linters, or only disabled linters.


1 Answers

I believe Sublime sets the syntax of PHP to HTML by default. Change the syntax to PHP if you want it to lint as PHP.

like image 136
lunixbochs Avatar answered Sep 25 '22 13:09

lunixbochs