Skip to content

Instantly share code, notes, and snippets.

View acenqiu's full-sized avatar

Jiangyi Qiu acenqiu

  • Acen Studio
  • Wuhan, Hubei, China
View GitHub Profile
# config/application.rb
# append to bottom
require 'i18n_time_zone'
@acenqiu
acenqiu / syntax_highlighting.py
Created March 22, 2012 06:58 — forked from phillipkoebbe/syntax_highlighting.py
Syntax highlight switcher for Sublime Text 2
import sublime, sublime_plugin
import os, string, re
class DetectFileTypeCommand(sublime_plugin.EventListener):
""" Attempts to choose the correct syntax when more than one could apply. """
def __init__(self):
super(DetectFileTypeCommand, self).__init__()
self.path = None