naomichi-y / php_syntax_checker

This package is plugins for Sublime Text 2 and 3. When you save PHP file, perform syntax check of PHP
39 stars 14 forks source link

Use syntax rather than file extension for detecting PHP files? #8

Closed ghost closed 9 years ago

ghost commented 9 years ago

Perhaps it would be possible to use the file's syntax rather than the extension to detect PHP files (or a combination)? To get the file's syntax, use view.settings().get('syntax') - for PHP the standard syntax file is 'Packages/PHP/PHP.tmLanguage'. This way it's easier to use the plugin with PHP syntaxed files that have a different extension!

naomichi-y commented 9 years ago

:+1:

ghost commented 9 years ago

Glad you liked it! :-)