1 Star 0 Fork 0

王高飞/sublime_diagram_plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
diagram_plugin.py 820 Bytes
一键复制 编辑 原始数据 按行查看 历史
overlord 提交于 2013-12-02 10:24 . add unicode byte-order-marks
from sublime_plugin import TextCommand
from sublime import error_message, version
try:
from .diagram import setup, process
except ValueError:
from diagram import setup, process
class DisplayDiagrams(TextCommand):
def run(self, edit):
print("Processing diagrams in %r..." % self.view)
if not process(self.view):
error_message("No diagrams overlap selections.\n\n" \
"Nothing to process.")
def isEnabled(self):
return True
if version()[0] == '2':
setup()
else:
def plugin_loaded():
"""Sublime Text 3 callback to do after-loading initialization"""
try:
setup()
except Exception:
error_message("Unable to load diagram plugin, check console "
"for details.")
raise
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wanggaofei9527/sublime_diagram_plugin.git
[email protected]:wanggaofei9527/sublime_diagram_plugin.git
wanggaofei9527
sublime_diagram_plugin
sublime_diagram_plugin
master

搜索帮助