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

Apply​Syntax

by facelessuser ST2/ST3

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

Details

  • 3 2.5.0
    2 1.2.0
  • github.​com
  • github.​com
  • 1 month ago
  • 4 hours ago
  • 5 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

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/