Giter Site home page Giter Site logo

syntaxchecker's Introduction

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

syntaxchecker's People

Contributors

kuraiou avatar srilumpa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

syntaxchecker's Issues

Does not appear to work with Windows Sublime Text 2

I have tried to run Syntax Checker on PHP files with the following results produced in the console screen:

[Error 2] The system cannot find the file specified
[cmd: [u'php', u'-l', u'D:\wamp\www\ecommerce\pages\login.php']]
[dir: D:\wamp\www\ecommerce\pages]
[path: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Caminova\Document Express DjVu Plug-in;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;E:\PROGAM1\CONDUS1\DISKEE~1;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Windows Live\Shared]
[Finished]

I have the feeling that it is looking for the location of both the file and Sublime Text 2, but am unsure after reviewing the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.