• 大小: 40.27MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-30
  • 语言: Python
  • 标签: sublie  text3  

资源简介

Sublime Text 3 是一个了不起的软件。首先,它是一个干净,实用,可以快速的编写代码编辑器。它不仅具有令人难以置信的内置功能(多行编辑和VIM模式),而且还支持插件,代码片段和其他许多东西。内含Python插件

资源截图

代码片段和文件信息

import sys

import sublime_api


class _LogWriter:
    def flush(self):
        pass

    def write(self s):
        sublime_api.log_message(s)


sys.stdout = _LogWriter()
sys.stderr = _LogWriter()

HOVER_TEXT = 1
HOVER_GUTTER = 2
HOVER_MARGIN = 3

ENCODED_POSITION = 1
TRANSIENT = 4
FORCE_GROUP = 8
IGNORECASE = 2
LITERAL = 1
MONOSPACE_FONT = 1
KEEP_OPEN_ON_FOCUS_LOST = 2
HTML = 1
COOPERATE_WITH_AUTO_COMPLETE = 2
HIDE_ON_MOUSE_MOVE = 4
HIDE_ON_MOUSE_MOVE_AWAY = 8

DRAW_EMPTY = 1
HIDE_ON_MINIMAP = 2
DRAW_EMPTY_AS_OVERWRITE = 4
PERSISTENT = 16
# Deprecated use DRAW_NO_FILL instead
DRAW_OUTLINED = 32
DRAW_NO_FILL = 32
DRAW_NO_OUTLINE = 256
DRAW_SOLID_UNDERLINE = 512
DRAW_STIPPLED_UNDERLINE = 1024
DRAW_SQUIGGLY_UNDERLINE = 2048
HIDDEN = 128

OP_EQUAL = 0
OP_NOT_EQUAL = 1
OP_REGEX_MATCH = 2
OP_NOT_REGEX_MATCH = 3
OP_REGEX_CONTAINS = 4
OP_NOT_REGEX_CONTAINS = 5
CLASS_WORD_START = 1
CLASS_WORD_END = 2
CLASS_PUNCTUATION_START = 4
CLASS_PUNCTUATION_END = 8
CLASS_SUB_WORD_START = 16
CLASS_SUB_WORD_END = 32
CLASS_LINE_START = 64
CLASS_LINE_END = 128
CLASS_EMPTY_LINE = 256
INHIBIT_WORD_COMPLETIONS = 8
INHIBIT_EXPLICIT_COMPLETIONS = 16

DIALOG_CANCEL = 0
DIALOG_YES = 1
DIALOG_NO = 2

UI_ELEMENT_SIDE_BAR = 1
UI_ELEMENT_MINIMAP = 2
UI_ELEMENT_TABS = 4
UI_ELEMENT_STATUS_BAR = 8
UI_ELEMENT_MENU = 16
UI_ELEMENT_OPEN_FILES = 32

LAYOUT_INLINE = 0
LAYOUT_BELOW = 1
LAYOUT_BLOCK = 2


def version():
    return sublime_api.version()


def platform():
    return sublime_api.platform()


def arch():
    return sublime_api.architecture()


def channel():
    return sublime_api.channel()


def executable_path():
    return sublime_api.executable_path()


def executable_hash():
    import hashlib
    return (
        version() platform() + ‘_‘ + arch()
        hashlib.md5(open(executable_path() ‘rb‘).read()).hexdigest())


def packages_path():
    return sublime_api.packages_path()


def installed_packages_path():
    return sublime_api.installed_packages_path()


def cache_path():
    “““ Returns the path where Sublime Text stores cache files “““
    return sublime_api.cache_path()


def status_message(msg):
    sublime_api.status_message(msg)


def error_message(msg):
    sublime_api.error_message(msg)


def message_dialog(msg):
    sublime_api.message_dialog(msg)


def ok_cancel_dialog(msg ok_title=““):
    return sublime_api.ok_cancel_dialog(msg ok_title)


def yes_no_cancel_dialog(msg yes_title=““ no_title=““):
    return sublime_api.yes_no_cancel_dialog(msg yes_title no_title)


def run_command(cmd args=None):
    sublime_api.run_command(cmd args)


def get_clipboard(size_limit=16777216):
    “““
    Returns the content of the clipboard for performance reason if the size
    of the clipboard content is bigger than size_limit an empty string will be
    returned
    “““
    return sublime_api.get_clipboard(size_limit)


def set_clipboard(text):
    return sublime_api.set_clipboard(text)


def log_commands(flag):
    sublime_api.log_commands(flag)


def lo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\
     文件       47997  2018-05-14 09:18  sublie text3\Sublime Text Build 3176 x64\changelog.txt
     文件      224880  2018-05-14 09:32  sublie text3\Sublime Text Build 3176 x64\crash_reporter.exe
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\
     文件         129  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\.editorconfig
     文件          29  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\.gitattributes
     文件           0  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\.no-sublime-package
     文件         902  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\autoprefixer.js
     文件        2403  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\Autoprefixer.py
     文件          69  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\Autoprefixer.sublime-commands
     文件         612  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\Autoprefixer.sublime-settings
     文件        1109  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\license
     文件         333  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\Main.sublime-menu
     文件         997  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_bridge.py
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\.bin\
     文件          32  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\.bin\autoprefixer
     文件          22  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\.bin\browserslist
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\ansi-styles\
     文件        3351  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\ansi-styles\index.js
     文件        1109  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\ansi-styles\license
     文件        6763  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\ansi-styles\package.json
     文件        3610  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\ansi-styles\readme.md
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\autoprefixer\
     文件        5373  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\autoprefixer\AUTHORS
     目录           0  2019-07-17 16:54  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\autoprefixer\bin\
     文件         598  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\autoprefixer\bin\autoprefixer
     文件       24149  2018-05-07 22:32  sublie text3\Sublime Text Build 3176 x64\Data\Backup\20190717155955\Autoprefixer\node_modules\autoprefixer\CHANGELOG.md
............此处省略3691个文件信息

评论

共有 条评论