ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Syntax​Checker

by srilumpa ST2

A SublimeText 2 plugin that will check the syntax of script files when saved

Details

  • 2015.11.01.14.36.58
  • github.​com
  • github.​com
  • 4 years ago
  • 3 hours ago
  • 6 years ago

Installs

  • Total 5K
  • Win 3K
  • OS X 1K
  • Linux 839
Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SyntaxChecker

A SublimeText 2 plugin that will check the syntax of script files when saved

Ths plugin will run a command to check the syntax of your script once you will save it. The command is selected according to your file's extension.

It will NOT execute your script.

Supported languages

  • Ruby
  • Perl
  • PHP
  • XML

Supported platforms

This plugin has been tested on Linux platform and should work the same on OS/X or Windows platforms. It has NOT been tested ont those last two.

If you encounter some problem with OS/X or Windows, register an issue or submit a pull request on GitHub.

Installation

With the Package Control plugin: The easiest way to install SyntaxChecker is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart ST2 and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select SyntaxChecker when the list appears. The advantage of using this method is that Package Control will automatically keep SyntaxChecker up to date with the latest version.

Without Git: Download the latest source from GitHub and copy the SyntaxChecker folder to your Sublime Text 2 “Packages” directory.

With Git: Clone the repository in your Sublime Text 2 “Packages” directory:

git clone git://github.com/srilumpa/SyntaxChecker.git

The “Packages” directory is located at:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/
    
  • Linux:

    ~/.config/sublime-text-2/Packages/
    
  • Windows:

    %APPDATA%/Sublime Text 2/Packages/
    

Contributing

If you have an issue using this plugin or if you have any suggestion, feel free to submit an issue on GitHub or even submit a patch.

Thanks

Thanks to Edgar Gonzalez for allowing me to take inspiration from his work with RubyCheckOnSave