Skip to content

Instantly share code, notes, and snippets.

View marcusg's full-sized avatar
🏠
Working from home

Marcus Geißler marcusg

🏠
Working from home
View GitHub Profile
@marcusg
marcusg / syntax_highlighting.py
Created October 30, 2011 08:59 — forked from olivierlacan/syntax_highlighting.py
Ruby on Rails syntax highlight switcher for Sublime Text 2
import sublime, sublime_plugin
import os
class DetectFileTypeCommand(sublime_plugin.EventListener):
def on_load(self, view):
filename = view.file_name()
if not filename: # buffer has never been saved
return