- Open the Javascript file that you want to run in Sublime Text. 2 Go to Tools Build System in the top bar and select node. This is the build system that you just created.
- On Mac I’ve used macports to install tidy, on Windows you’d have to download it yourself and specify working directory in the build system, where tidy is located: 'workingdir': 'c:HTMLTidy' or add it.
Oct 01, 2019 Sublime Text is available for Mac, Windows and Linux. One license is all you need to use Sublime Text on every computer you own, no matter what operating system it uses.
About
This is a JSON configuration file for Sublime Text 2 that provides a build system for PHP.
![Sublime Text 2 Build System Chrome For Mac Sublime Text 2 Build System Chrome For Mac](/uploads/1/1/9/4/119420510/283782206.png)
Sublime Text 3 Python Build
- Ctrl + B will run a lint check on the PHP syntax of a provided script.
- Ctrl + Shift + B will execute the script under PHP's command line environment.
- Several other commands are available via the Command Palette. (Ctrl + Shift + P)
Prerequisites
This requires Sublime Text 2 and may work (untested) in Sublime Text 3: http://www.sublimetext.com/
Install Sublime Text 2
Currently, it is assumed that the PHP binary is installed and part of your operating system's PATH variable. If it isn't, you can substitute 'php' in the 'cmd' value with the full path to your PHP binary.
Installation
- Windows: Place the .sublime-build file in %APPDATA%Sublime Text 2PackagesUser
- Linux: Place the .sublime-build file in ~/.config/sublime-text-2/Packages/User/
- Mac OS X: Place the .sublime-build file in ~/Library/Application Support/Sublime Text 2/Packages/User/