Better Syntax Matcher for Sublime Text 2
If you haven't tried Sublime Text 2 yet, and you code for a living, you should. It really is a great text editor that gets out of your way.
But I found when I was flipping between rails, ruby, features, specs, ERB, sass etc that the syntax matching wasn't so good.
After hunting around the web, I found various patches and fixes, but none really handled everything I needed, nor gave me a way to properly define what files were which syntax. For example, a file ending in rb
should be Ruby syntax, but if it is inside a Rails application, should have the Ruby on Rails syntax, and if it has _steps
as the last part of the base file name, it should be Cucumber steps.
What was needed was a more powerful way to match each file and get the right syntax. I hunted around and found this solution but it didn't solve the whole problem, and was just a gist.
So I took it, packaged it up into a proper Sublime Text 2 plugin and published it for anyone to use.
Behold, the new, improved and oh so shiny Sublime Text 2 Syntax Matcher!
This just uses a bunch of python to match the file types with context taken into account.
Feel free to fork and send pull requests to add the syntax of your choice.
Mikel
Popular Articles by Our Team
Our expert team of designers and developers love what the do and enjoy sharing their knowledge with the world.
-
The Benefits of Ruby on Rails
-
Heroku Forcing Password Resets as GitHub Investigation Continues
-
How to Maximise your ROI with a Custom Application Built in Sa...
We Hire Only the Best
reinteractive is Australia’s largest dedicated Ruby on Rails development company. We don’t cut corners and we know what we are doing.
We are an organisation made up of amazing individuals and we take pride in our team. We are 100% remote work enabling us to choose the best talent no matter which part of the country they live in. reinteractive is dedicated to making it a great place for any developer to work.
Free Community Workshops
We created the Ruby on Rails InstallFest and Ruby on Rails Development Hub to help introduce new people to software development and to help existing developers hone their skills. These workshops provide invaluable mentorship to train developers, addressing key skills shortages in the industry. Software development is a great career choice for all ages and these events help you get started and skilled up.