-
大小: 7.05MB文件类型: .rar金币: 2下载: 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 网络验证授权代码程序
相关资源
- Macromedia Fireworks V8.0 简体中文版
- Radmin 3.5 简体中文版附完美破解 支持
- Radmin 3.5 简体中文版附完美破解
- windows3.2简体中文版,虚拟机文件
- UltraEdit 17.20 官方最新简体中文版含破
- HALCON使用手册简体中文版
- 大象:Thinking in UML第2版简体中文版
- MIL-STD-810F简体中文版本
- 收藏奉献_DOS汉字系统62:台湾 倚天汉
- 收藏奉献_DOS汉字系统63:台湾 倚天汉
- Ultraedit_22.20.0.43_64位简体中文版 + 完美
- CMMI-dev-V1.3简体中文版最终发布版本
- MicroStation V8i简体中文版完全破解文件
- Depends简体中文版
- WinHex 17.2 官方简体中文版 + 注册机
-
Windows Media Pla
yer v7.1 简体中文版 - PE Explorer 1.99 R5 反编译软件 简体中文
- OFFICE密码破解AdvancedOfficePasswordRecove
- Uedit32编辑器v11.00a简体中文版带注册机
- 64位windows sever2003群集 磁盘补丁kb919
- cmmi(dev)v1.2简体中文版
- Cult3DDesignerV5.3.0.117简体中文版
- Rhinoceros(犀牛) v4.0 SR9 简体中文版最
- MQL4_编程简体中文版
- Cheat Engine 5.4 简体中文版
- Labview2009简体中文版及注册机附8.6版本
- 福昕阅读器 (Foxit Reader) 4.3.1.0218 简
- Turbo Photo 简体中文版V6.8原版注册成功
- Delphi_10_Seattle_入门手册_简体中文版(
- Cool Edit Pro V2.1 简体中文版破解版
评论
共有 条评论