sublime text

  • g0_608377
    了解作者
  • 7.1MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-22 02:21
    上传日期
Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance.
Sublime Text 2 Build 2191.zip
  • Data
  • Settings
  • License.sublime_license
    354B
  • KEEPME
    0B
  • Pristine Packages
  • ASP.sublime-package
    9.3KB
  • Lisp.sublime-package
    8.1KB
  • Theme - Default.sublime-package
    104.6KB
  • Rails.sublime-package
    102.9KB
  • C++.sublime-package
    54.1KB
  • Matlab.sublime-package
    93.4KB
  • PHP.sublime-package
    499.4KB
  • Makefile.sublime-package
    3.6KB
  • OCaml.sublime-package
    100.1KB
  • R.sublime-package
    19.7KB
  • Batch File.sublime-package
    4.5KB
  • LaTeX.sublime-package
    78.3KB
  • HTML5.sublime-package
    121.4KB
  • SQL.sublime-package
    19.1KB
  • DetectSyntax.sublime-package
    6KB
  • RestructuredText.sublime-package
    17.7KB
  • Markdown.sublime-package
    31.9KB
  • Erlang.sublime-package
    73.2KB
  • ShellScript.sublime-package
    47.7KB
  • Theme - Soda.sublime-package
    172.3KB
  • Lua.sublime-package
    10.6KB
  • C#.sublime-package
    16.6KB
  • Can I Use.sublime-package
    2.5KB
  • Objective-C.sublime-package
    72.6KB
  • Perl.sublime-package
    78KB
  • copy-file-name.sublime-package
    2KB
  • Clojure.sublime-package
    86.6KB
  • Groovy.sublime-package
    77.3KB
  • Regular Expressions.sublime-package
    3.5KB
  • EncodingHelper.sublime-package
    185.7KB
  • D.sublime-package
    48.2KB
  • ZenCoding.sublime-package
    207.4KB
  • HTML.sublime-package
    13.9KB
  • Diff.sublime-package
    3.2KB
  • Go.sublime-package
    28.3KB
  • XML.sublime-package
    21.6KB
  • Edit History.sublime-package
    3.2KB
  • Color Scheme - Default.sublime-package
    35KB
  • AAAPackageDev.sublime-package
    65.2KB
  • AutoFileName.sublime-package
    1.6KB
  • Haskell.sublime-package
    22.5KB
  • ColdFusion.sublime-package
    48.3KB
  • CSS.sublime-package
    75.8KB
  • AutoSelect.sublime-package
    2.8KB
  • User.sublime-package
    718B
  • Text.sublime-package
    2.7KB
  • JavaScript.sublime-package
    43KB
  • TCL.sublime-package
    16.4KB
  • ActionScript.sublime-package
    19.2KB
  • CSS Less(ish).sublime-package
    12.5KB
  • Scala.sublime-package
    34.1KB
  • YAML.sublime-package
    11KB
  • Language - English.sublime-package
    1.2MB
  • Python.sublime-package
    89.7KB
  • Ruby.sublime-package
    125.1KB
  • Textile.sublime-package
    15.5KB
  • Default.sublime-package
    188.2KB
  • Package Control.sublime-package
    61.2KB
  • Default File Type.sublime-package
    2KB
  • AppleScript.sublime-package
    58.8KB
  • Java.sublime-package
    71.2KB
  • Vintage.sublime-package
    16.5KB
  • Graphviz.sublime-package
    3.7KB
  • _ctypes.pyd
    72KB
  • _elementtree.pyd
    84KB
  • _socket.pyd
    39.5KB
  • msvcr90.dll
    637.8KB
  • unicodedata.pyd
    572KB
  • sublime_text.exe
    3.7MB
  • bz2.pyd
    70KB
  • python26.dll
    2MB
  • PackageSetup.py
    4.1KB
  • select.pyd
    11.5KB
  • python26.zip
    1.4MB
  • msvcp90.dll
    559.5KB
  • pyexpat.pyd
    149.5KB
  • _ssl.pyd
    650KB
  • sublime_plugin.py
    10.6KB
  • _hashlib.pyd
    279.5KB
  • Microsoft.VC90.CRT.manifest
    1.8KB
内容介绍
import os import sys import time import sublime import imp application_command_classes = [] window_command_classes = [] text_command_classes = [] all_command_classes = [application_command_classes, window_command_classes, text_command_classes] all_callbacks = {'on_new': [], 'on_clone': [], 'on_load': [], 'on_close': [], 'on_pre_save': [], 'on_post_save': [], 'on_modified': [], 'on_selection_modified': [],'on_activated': [], 'on_deactivated': [], 'on_project_load': [], 'on_project_close': [], 'on_query_context': [], 'on_query_completions': []} def unload_module(module): if "unload_handler" in module.__dict__: module.unload_handler() # Unload the old plugins if "plugins" in module.__dict__: for p in module.plugins: for cmd_cls_list in all_command_classes: try: cmd_cls_list.remove(p) except ValueError: pass for c in all_callbacks.values(): try: c.remove(p) except ValueError: pass def unload_plugin(fname): print "Unloading plugin", fname modulename, ext = os.path.splitext(os.path.basename(fname)) was_loaded = modulename in sys.modules if was_loaded: m = __import__(modulename) unload_module(m) def reload_plugin(fname): print "Reloading plugin", fname path = os.path.dirname(fname) # Change the current directory to that of the module. It's not safe to just # add the modules directory to sys.path, as that won't accept unicode paths # on Windows oldpath = os.getcwdu() os.chdir(path) modulename, ext = os.path.splitext(os.path.basename(fname)) if modulename in sys.modules: unload_module(sys.modules[modulename]) m_info = imp.find_module(modulename, ["."]) m = imp.load_module(modulename, *m_info) # Restore the current directory os.chdir(oldpath) module_plugins = [] for type_name in dir(m): try: t = m.__dict__[type_name] if t.__bases__: is_plugin = False if issubclass(t, ApplicationCommand): application_command_classes.append(t) is_plugin = True if issubclass(t, WindowCommand): window_command_classes.append(t) is_plugin = True if issubclass(t, TextCommand): text_command_classes.append(t) is_plugin = True if is_plugin: module_plugins.append(t) if issubclass(t, EventListener): obj = t() for p in all_callbacks.iteritems(): if p[0] in dir(obj): p[1].append(obj) module_plugins.append(obj) except AttributeError: pass if len(module_plugins) > 0: m.plugins = module_plugins def create_application_commands(): cmds = [] for class_ in application_command_classes: cmds.append(class_()) return cmds def create_window_commands(window): cmds = [] for class_ in window_command_classes: cmds.append(class_(window)) return cmds def create_text_commands(view): cmds = [] for class_ in text_command_classes: cmds.append(class_(view)) return cmds EVENT_TIMEOUT = 0.2 FAST_EVENT_TIMEOUT = 1 / 60.0 first_time_msgs = set() msgs = set() def show_timeout(plugin_name, elapsed, callback): global first_time_msgs global msgs key = plugin_name + callback msg = ("A plugin (%s) may be making Sublime Text unresponsive by taking too " + "long (%fs) in its %s callback.\n\nThis message can be disabled via the " + "detect_slow_plugins setting") % (plugin_name, elapsed, callback) # Give plugins one chance to respond slowly, to handle any initialisation issues etc. # This allowance may be removed in the future due to startup time concerns if not key in first_time_msgs: first_time_msgs.add(key) return if not key in msgs: msgs.add(key) if sublime.load_settings('Preferences.sublime-settings').get('detect_slow_plugins', True): sublime.error_message(msg) blocking_api_call_count = 0 def on_blocking_api_call(): global blocking_api_call_count blocking_api_call_count += 1 def run_timed_function(f, name, event_name, timeout): global blocking_api_call_count t0 = time.time() blocking_count = blocking_api_call_count ret = f() elapsed = time.time() - t0 if elapsed > timeout and blocking_api_call_count == blocking_count: show_timeout(name, elapsed, event_name) return ret def on_new(v): for callback in all_callbacks['on_new']: run_timed_function(lambda: callback.on_new(v), callback.__module__, "on_new", EVENT_TIMEOUT) def on_clone(v): for callback in all_callbacks['on_clone']: run_timed_function(lambda: callback.on_clone(v), callback.__module__, "on_clone", EVENT_TIMEOUT) def on_load(v): for callback in all_callbacks['on_load']: run_timed_function(lambda: callback.on_load(v), callback.__module__, "on_load", EVENT_TIMEOUT) def on_close(v): for callback in all_callbacks['on_close']: run_timed_function(lambda: callback.on_close(v), callback.__module__, "on_close", EVENT_TIMEOUT) def on_pre_save(v): for callback in all_callbacks['on_pre_save']: run_timed_function(lambda: callback.on_pre_save(v), callback.__module__, "on_pre_save", EVENT_TIMEOUT) def on_post_save(v): for callback in all_callbacks['on_post_save']: run_timed_function(lambda: callback.on_post_save(v), callback.__module__, "on_post_save", EVENT_TIMEOUT) def on_modified(v): for callback in all_callbacks['on_modified']: run_timed_function(lambda: callback.on_modified(v), callback.__module__, "on_modified", FAST_EVENT_TIMEOUT) def on_selection_modified(v): for callback in all_callbacks['on_selection_modified']: run_timed_function(lambda: callback.on_selection_modified(v), callback.__module__, "on_selection_modified", FAST_EVENT_TIMEOUT) def on_activated(v): for callback in all_callbacks['on_activated']: run_timed_function(lambda: callback.on_activated(v), callback.__module__, "on_activated", EVENT_TIMEOUT) def on_deactivated(v): for callback in all_callbacks['on_deactivated']: run_timed_function(lambda: callback.on_deactivated(v), callback.__module__, "on_deactivated", EVENT_TIMEOUT) def on_project_load(v): for callback in all_callbacks['on_project_load']: run_timed_function(lambda: callback.on_project_load(v), callback.__module__, "on_project_load", EVENT_TIMEOUT) def on_project_close(v): for callback in all_callbacks['on_project_close']: run_timed_function(lambda: callback.on_project_close(v), callback.__module__, "on_project_close", EVENT_TIMEOUT) def on_query_context(v, key, operator, operand, match_all): for callback in all_callbacks['on_query_context']: val = run_timed_function(lambda: callback.on_query_context(v, key, operator, operand, match_all), callback.__module__, "on_query_context", FAST_EVENT_TIMEOUT) if val: return True return False def on_query_completions(v, prefix, locations): completions = [] flags = 0 for callback in all_callbacks['on_query_completions']: res = callback.on_query_completions(v, prefix, locations) if isinstance(res, tuple): completions += res[0] flags |= res[1] elif isinstance(res, list): completions += res return (completions,flags) class Command(object): def name(self):
评论
    相关推荐
    • Sublime Text
      Sublime Text 一种比较好的文本、代码编辑工具
    • Sublime text
      sublime text3的package_control包,完全符合sublime text3
    • Sublime Text
      Sublime Text 3.3126x86 简体中文汉化版(Windows 32位)
    • sublime text
      sublime text
    • Sublime Text
      下载之后解压即可使用,无需安装,轻便又好用,各种文件类型都能打开
    • Sublime Text
      Sublime Text 3x64
    • Sublime Text
      Sublime Text
    • Sublime Text
      Sublime Text中文 绿色版Sublime Text中文 绿色版Sublime Text中文 绿色版
    • Sublime Text
      Sublime Text mac 下文本编辑工具
    • SIM800C_MQTT.rar
      使用SIM800C模块,使用MQTT协议,连接中国移动onenet平台,能实现数据的订阅、发布、存储等