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

Apply​Syntax

by facelessuser ST3

Syntax detector for Sublime Text

Details

Installs

  • Total 86K
  • Win 37K
  • Mac 32K
  • Linux 18K
Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 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
Windows 0 1 1 0 4 2 1 3 1 0 1 4 3 1 3 2 2 1 1 1 4 0 1 2 0 1 3 0 0 2 1 7 2 2 1 2 0 0 4 3 1 4 3 1 2 0
Mac 1 2 1 0 3 0 3 2 2 0 0 1 3 4 2 4 2 0 4 1 0 0 0 1 1 3 1 1 1 2 2 0 1 1 0 2 1 0 3 0 1 2 1 1 1 0
Linux 0 2 0 1 0 1 0 1 4 1 1 0 2 4 3 4 1 0 2 2 7 3 3 1 1 0 1 1 2 0 1 0 0 0 2 0 1 2 0 0 0 2 0 2 2 3

Readme

Source
raw.​githubusercontent.​com

Donate via PayPal 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

https://facelessuser.github.io/ApplySyntax/

License

ApplySyntax is released under the MIT license.