首页 > Web开发 > 详细

sublime 新建文档 默认html

时间:2017-02-10 21:39:47      阅读:240      评论:0      收藏:0      [点我收藏+]

Just hit Tools -> New Plugin

Then paste this over the file, hit save and call it "DefaultLanguage.py" or something

import sublime, sublime_plugin

class EverythingIsPowerShell(sublime_plugin.EventListener):
   def on_new(self, view):
      view.set_syntax_file(‘Packages/PowerShell/Support/PowershellSyntax.tmLanguage‘)

Of course, you can change the language from PowerShell to ... whatever you prefer. You just need the relative path to the tmLanguage. You can get that by opening a file in your favorite language and then open the console (View->Show Console) and type:

view.settings().get(‘syntax‘)

sublime 新建文档 默认html

原文:http://www.cnblogs.com/non-clockwork-cheng/p/6387803.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!