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

Apply​Syntax

by facelessuser ST3 Trending

Syntax detector for Sublime Text http://facelessuser.github.io/ApplySyntax/

Details

Installs

  • Total 76K
  • Win 32K
  • Mac 29K
  • Linux 16K
Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23
Windows 0 5 8 3 5 13 7 5 9 4 7 2 2 2 7 5 3 6 3 4 3 2 5 8 6 9 3 4 8 2 13 3 5 6 6 9 6 5 5 10 8 3 6 3 8 8
Mac 3 0 5 9 5 5 4 1 3 3 5 5 5 6 2 3 5 6 4 4 2 6 3 0 5 4 2 5 1 2 3 3 8 2 2 1 1 2 2 4 2 2 6 1 2 5
Linux 1 2 6 2 3 1 1 0 1 5 2 1 1 0 1 4 4 2 0 4 3 1 2 1 17 1 4 1 1 3 4 8 4 2 1 3 3 3 6 1 2 3 5 1 5 3

Readme

Source
raw.​githubusercontent.​com

Build Package Control Downloads License

ApplySyntax

ApplySyntax is a plugin for Sublime Text 2 and 3 that allows you to detect and apply the syntax of files that might not otherwise be detected properly. For example, files with the .rb extension are usually Ruby files, but when they are found in a Rails project, they could be RSpec spec files, Cucumber step files, Ruby on Rails files (controllers, models, etc), or just plain Ruby files. This is actually the problem I was trying to solve when I started working on this plugin.

Credits

DetectSyntax was originally created by phillipkoebbe. In his words, these are his credits:

It all started by forking the plugin created by JeanMertz (1). I modified it quite extensively until I ended up with something entirely my own (2). @maxim and @omarramos commented on the gist and suggested it should be part of Package Control. As I had created it solely for my own consumption, it seemed a bit “hard-coded” to be valuable as a package, but then I took a look at SetSyntax (3). and saw how using settings would make it very flexible. That set me on the path that led to DetectSyntax.

Documentation

http://facelessuser.github.io/ApplySyntax/

License

Raw Line Edit is released under the MIT license.

Copyright © phillipkoebbe.

Changes: Copyright © 2013 - 2019 Isaac Muse isaacmuse@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.