-
大小: 7.05MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-09-22
- 语言: 其他
- 标签: SublimeText2
资源简介
Sublime Text 2这款程序员必备代码编辑器,几乎每位程序员提到Sublime Text 2都是赞不绝口!它体积小巧,无需安装,绿色便携;它可跨平台支持Windows/Mac/Linux;支持32与64位操作系统,它在支持语法高亮、代码补全、代码片段(Snippet)、代码折叠、行号显示、自定义皮肤、配色方案等所有其它代码编辑器所拥有的功能的同时,又保证了其飞快的速度!还有着自身独特的功能,比如代码地图、多种界面布局以及全屏免打扰模式等,这些优秀特性让Sublime Text 2成了所有程序员眼中的神!
Sublime Text 2 简体中文版
Windows 7 用户请使用“Windows7”文件夹中的“SublimeText.exe”替换“SublimeText2”目录中的同名文件,即可正常运行。
代码片段和文件信息
#!python
from __future__ import with_statement
import glob
import os.path
import shutil
import zipfile
def isFileEntry(s):
return s[-1] != ‘/‘
def readFile(fname):
with open(fname ‘rb‘) as f:
return f.read()
def writeFile(fname data):
with open(fname ‘wb‘) as fo:
fo.write(data)
def mkdirs(path):
try:
os.makedirs(path)
except os.error:
pass
def upgradeArchive(src dst pkgdir backupdir inhibitOverwrite):
mkdirs(pkgdir)
mkdirs(os.path.dirname(dst))
try:
newar = zipfile.ZipFile(src)
except (zipfile.BadZipfile):
print ‘PackageSetup: bad zip file at %s‘ % src
return
newfiles = set(filter(isFileEntry newar.namelist()))
oldar = None
oldfiles = set()
try:
oldar = zipfile.ZipFile(dst)
oldfiles = set(filter(isFileEntry oldar.namelist()))
except (zipfile.error IOError):
pass
# delete any orphaned files
if not inhibitOverwrite:
orphanedFiles = oldfiles - newfiles
for f in orphanedFiles:
# backup the file if the user has modified it
try:
orig = oldar.read(f)
user = readFile(os.path.join(pkgdir f))
if user != orig:
backupFile = os.path.join(backupdir f)
mkdirs(os.path.dirname(backupFile))
writeFile(backupFile user)
except (os.error IOError):
pass
try:
os.remove(os.path.join(pkgdir f))
except (os.error IOError):
pass
# extract any new files
for f in newfiles - oldfiles:
try:
if not isinstance(f unicode):
f = unicode(f ‘utf-8‘)
fname = os.path.join(pkgdir f)
except (UnicodeDecodeError):
fname = os.path.join(pkgdir unicode(f ‘cp1252‘ ‘replace‘))
mkdirs(os.path.dirname(fname))
try:
user = readFile(fname)
if user:
if inhibitOverwrite:
continue;
else:
# Backup the old file
backupFile = os.path.join(backupdir f)
mkdirs(os.path.dirname(backupFile))
writeFile(backupFile user)
except (os.error IOError):
pass
writeFile(fname newar.read(f))
# upgrade each file
if not inhibitOverwrite:
for f in oldfiles & newfiles:
fname = os.path.join(pkgdir f)
orig = oldar.read(f)
new = newar.read(f)
if new != orig:
# backup the file if the user has modified it
try:
user = readFile(fname)
if user != orig:
backupFile = os.path.join(backupdir f)
mkdirs(os.path.dirname(backupFile))
writeFile(backupFile user)
except (os.error IOError):
pass
writeFile(fname newar.read(f))
# copy the zip
shutil.copy(src dst)
def removeArchive(dst pkgdir):
oldar = None
oldfiles = set()
try:
oldar = zipfile.ZipFile(dst)
oldfiles = set(filter(isFileEntry oldar.namelist()))
except (zipfile.error IOError):
pass
oldar.close()
# delete any orphaned files
orphanedFiles = oldfiles
for f in orphanedFiles:
try:
os.remove(os.path.join(pkgdir f))
except (os.error IOError):
pass
# delete the archive and destination
try:
os.remove(dst)
except (os.error IOError):
pass
try:
os.rmdir(pkgdir)
except (os.er
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3918848 2012-08-31 12:02 Windows 7\SublimeText.exe
文件 164 2012-10-10 15:02 Windows 7\说明.txt
文件 71680 2010-09-15 22:06 SublimeText2\bz2.pyd
文件 354 2012-08-04 14:12 SublimeText2\Data\Settings\License.sublime_license
文件 2896 2012-08-07 09:59 SublimeText2\Data\Settings\Session.sublime_session
文件 1852 2010-09-15 22:06 SublimeText2\Microsoft.VC90.CRT.manifest
文件 572928 2010-09-15 22:06 SublimeText2\msvcp90.dll
文件 653136 2010-09-15 22:06 SublimeText2\msvcr90.dll
文件 4205 2011-12-20 21:46 SublimeText2\PackageSetup.py
文件 4709 2012-08-04 13:58 SublimeText2\PackageSetup.pyc
文件 19659 2012-07-14 10:09 SublimeText2\Pristine Packages\Actionsc
文件 60222 2012-07-14 10:09 SublimeText2\Pristine Packages\Applesc
文件 9540 2012-07-14 10:09 SublimeText2\Pristine Packages\ASP.sublime-package
文件 4561 2012-07-14 10:09 SublimeText2\Pristine Packages\Batch File.sublime-package
文件 16961 2012-07-14 10:09 SublimeText2\Pristine Packages\C#.sublime-package
文件 55871 2012-07-14 10:09 SublimeText2\Pristine Packages\C++.sublime-package
文件 88703 2012-07-14 10:09 SublimeText2\Pristine Packages\Clojure.sublime-package
文件 267486 2012-08-06 15:15 SublimeText2\Pristine Packages\Color Scheme - Default.sublime-package
文件 12785 2012-02-29 23:30 SublimeText2\Pristine Packages\CSS Less(ish).sublime-package
文件 46498 2012-07-14 10:09 SublimeText2\Pristine Packages\CSS.sublime-package
文件 49308 2012-07-14 10:09 SublimeText2\Pristine Packages\D.sublime-package
文件 240209 2012-08-06 17:50 SublimeText2\Pristine Packages\Default.sublime-package
文件 2520 2012-08-06 15:42 SublimeText2\Pristine Packages\Diff.sublime-package
文件 74916 2012-07-14 10:09 SublimeText2\Pristine Packages\Erlang.sublime-package
文件 28983 2012-07-14 10:09 SublimeText2\Pristine Packages\Go.sublime-package
文件 3755 2012-07-14 10:09 SublimeText2\Pristine Packages\Graphviz.sublime-package
文件 79189 2012-07-14 10:09 SublimeText2\Pristine Packages\Groovy.sublime-package
文件 22990 2012-07-14 10:09 SublimeText2\Pristine Packages\Haskell.sublime-package
文件 48347 2012-07-14 10:09 SublimeText2\Pristine Packages\HTML.sublime-package
文件 124298 2012-02-22 10:32 SublimeText2\Pristine Packages\HTML5.sublime-package
............此处省略57个文件信息
- 上一篇:一套完整的his系统
- 下一篇:vc 网络验证授权代码程序
相关资源
- Rust 程序设计语言第二版 简体中文版
- CMMI_for_Development_v1-3_Simplified_Chinese
- EasyBCD2.4 简体中文版
- WinRAR 3.30 简体中文版
- Microsoftvisio2017官方简体中文版含密钥
- 跨行业流程分类框架简体中文版JECN
- 32位、64位简体中文版 WindowsServer2003
- Fortify用户手册简体中文版
- Ankh SVN 2.8 简体中文版 支持Visual Stud
- Advanced Office Password Recovery Pro 5.50.477
- Radmin3.5简体中文版附完美破解.zip
- navicat111_premium_cs_x86简体中文版-附破解
- Navicat Premium_11.1.9简体中文版
- RUP2007官方指南_简体中文版——Large
- HALCON使用手册简体中文版 20181126
- geany_v1.36 简体中文版.rar
- 《Imageware v11 逆向工程应用技术与范例
- ultraedit64 简体中文版 破解版
- 收藏奉献_DOS汉字系统12:WPS 1.0 for w
- VJC5.0简体中文版.rar
- navicat简体中文版 绿色版 64位
- Navicat Premium 12.0.20 X86 简体中文版 免激
- Navicat Premium 11.2.10 X64位简体中文版
- wamp server v3.1.7 官方简体中文版
- windows server 2003 sp2 R2简体中文版
- Navicat Premium_11.2.7简体中文版完美破解
- Material Design简体中文版-完整版.pdf
- DocFetcher-1.1.22(最新简体中文版)
- Navicat Premium_11.1.8简体中文版(破解版
- Cisco Packet Tracer 6.0简体中文版.rar
评论
共有 条评论