资源简介

Sublime Text3 插件包(包含前端大部分常用插件,绝版插件)。 解决 Package Control 网站被墙后,无法下载插件,像LESS2CSS等插件 Package Control都无法搜索到了。 插件包列表: All Autocomplete,AutoFileName,Better CoffeeScript,Bootstrap 3 Autocomplete,BracketHighlighter,ChineseLocalizations,Coffee2Js,CSSLess(ish),CSS Snippets,CSS3,Emmet,HTML Snippets,HTMLBeautify,JavaScript Completions,jQuery,JS Snippets,Less2Css,lessc,List LESS Variables,MarkdownLight,MarkdownPreview,Material Theme,My Snippets,OpenInBrowser。 使用方法: 解压后,将覆盖替换sublime text3 插件包目录文件即可

资源截图

代码片段和文件信息

#!/usr/bin/env python
# -*- coding: utf-8 -*-



import sys os re
import logging
import collections

is_py3k = sys.version_info[0] > 2

if is_py3k:
    import _thread as thread

    from io import StringIO

    str = str
    raw_input = input
else:
    import _thread

try:
    from io import StringIO
except ImportError:
    from io import StringIO

try:
    import json
except ImportError:
    import simplejson as json

import _PyV8

__author__ = ‘Flier Lu 
__version__ = ‘1.0‘

__all__ = [“ReadOnly“ “DontEnum“ “DontDelete“ “Internal“
           “JSError“ “JSobject“ “JSArray“ “JSFunction“
           “JSClass“ “JSEngine“ “JSContext“
           “JSobjectSpace“ “JSAllocationAction“
           “JSStackTrace“ “JSStackframe“ “profiler“ 
           “JSExtension“ “JSLocker“ “JSUnlocker“ “AST“]

class JSAttribute(object):
    def __init__(self name):
        self.name = name

    def __call__(self func):
        setattr(func “__%s__“ % self.name True)
        
        return func

ReadOnly = JSAttribute(name=‘readonly‘)
DontEnum = JSAttribute(name=‘dontenum‘)
DontDelete = JSAttribute(name=‘dontdel‘)
Internal = JSAttribute(name=‘internal‘)

class JSError(Exception):
    def __init__(self impl):
        Exception.__init__(self)

        self._impl = impl

    def __str__(self):
        return str(self._impl)

    def __unicode__(self *args **kwargs):
        return str(self._impl)

    def __getattribute__(self attr):
        impl = super(JSError self).__getattribute__(“_impl“)

        try:
            return getattr(impl attr)
        except AttributeError:
            return super(JSError self).__getattribute__(attr)

    RE_frame = re.compile(r“\s+at\s(?:new\s)?(?P.+)\s\((?P[^:]+):?(?P\d+)?:?(?P\d+)?\)“)
    RE_FUNC = re.compile(r“\s+at\s(?:new\s)?(?P.+)\s\((?P[^\)]+)\)“)
    RE_FILE = re.compile(r“\s+at\s(?P[^:]+):?(?P\d+)?:?(?P\d+)?“)

    @staticmethod
    def parse_stack(value):
        stack = []

        def int_or_nul(value):
            return int(value) if value else None

        for line in value.split(‘\n‘)[1:]:
            m = JSError.RE_frame.match(line)

            if m:
                stack.append((m.group(‘func‘) m.group(‘file‘) int_or_nul(m.group(‘row‘)) int_or_nul(m.group(‘col‘))))
                continue

            m = JSError.RE_FUNC.match(line)

            if m:
                stack.append((m.group(‘func‘) m.group(‘file‘) None None))
                continue

            m = JSError.RE_FILE.match(line)

            if m:
                stack.append((None m.group(‘file‘) int_or_nul(m.group(‘row‘)) int_or_nul(m.group(‘col‘))))
                continue

            assert line

        return stack

    @property
    def frames(self):
        return self.parse_stack(self.stackTrace)

_PyV8._JSError._jsclas

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-23 16:34  sublime Text3插件包\
     目录           0  2019-06-23 16:34  sublime Text3插件包\Installed Packages\
     文件        2859  2019-03-27 15:52  sublime Text3插件包\Installed Packages\0_package_control_loader.sublime-package
     文件        2617  2015-07-24 00:31  sublime Text3插件包\Installed Packages\All Autocomplete.sublime-package
     文件        7155  2015-07-24 14:17  sublime Text3插件包\Installed Packages\AutoFileName.sublime-package
     文件       43659  2015-07-31 11:26  sublime Text3插件包\Installed Packages\Better Coffeescript.sublime-package
     文件       73684  2019-03-15 10:19  sublime Text3插件包\Installed Packages\Bootstrap 3 Autocomplete.sublime-package
     文件      151786  2015-09-03 22:23  sublime Text3插件包\Installed Packages\BracketHighlighter.sublime-package
     文件       42930  2015-09-22 17:53  sublime Text3插件包\Installed Packages\ChineseLocalizations.sublime-package
     文件        4542  2015-07-31 11:48  sublime Text3插件包\Installed Packages\Coffee2Js.sublime-package
     文件       17023  2015-07-29 14:28  sublime Text3插件包\Installed Packages\CSS Less(ish).sublime-package
     文件       18254  2015-06-26 11:50  sublime Text3插件包\Installed Packages\CSS Snippets.sublime-package
     文件      504033  2015-07-28 11:41  sublime Text3插件包\Installed Packages\CSS3.sublime-package
     文件      231151  2019-04-23 22:20  sublime Text3插件包\Installed Packages\Emmet.sublime-package
     文件       13144  2015-06-21 23:34  sublime Text3插件包\Installed Packages\HTML Snippets.sublime-package
     文件        9543  2015-06-21 23:24  sublime Text3插件包\Installed Packages\HTMLBeautify.sublime-package
     文件       69322  2015-09-03 22:23  sublime Text3插件包\Installed Packages\javascript Completions.sublime-package
     文件      458692  2019-03-27 16:27  sublime Text3插件包\Installed Packages\jQuery.sublime-package
     文件        5264  2015-06-26 11:50  sublime Text3插件包\Installed Packages\JS Snippets.sublime-package
     文件       12315  2015-09-16 21:15  sublime Text3插件包\Installed Packages\Less2Css.sublime-package
     文件        1025  2019-05-06 11:12  sublime Text3插件包\Installed Packages\lessc.sublime-package
     文件        3912  2015-07-28 13:28  sublime Text3插件包\Installed Packages\List LESS Variables.sublime-package
     文件     1142453  2015-07-31 11:32  sublime Text3插件包\Installed Packages\MarkdownLight.sublime-package
     文件     1244864  2015-07-31 11:29  sublime Text3插件包\Installed Packages\MarkdownPreview.sublime-package
     文件     1188131  2015-09-03 22:24  sublime Text3插件包\Installed Packages\Material Theme.sublime-package
     文件        7987  2015-06-21 23:29  sublime Text3插件包\Installed Packages\My Snippets.sublime-package
     文件        3551  2015-09-08 12:53  sublime Text3插件包\Installed Packages\OpenInBrowser.sublime-package
     文件      186794  2015-09-16 21:15  sublime Text3插件包\Installed Packages\Package Control.sublime-package
     目录           0  2019-06-23 16:34  sublime Text3插件包\Installed Packages\PyV8\
     目录           0  2019-06-23 16:34  sublime Text3插件包\Installed Packages\PyV8\win64-p3\
     文件         110  2019-06-23 09:34  sublime Text3插件包\Installed Packages\PyV8\win64-p3\config.json
............此处省略3777个文件信息

评论

共有 条评论