Windows 下安装ReText
打算使用MarkDown了,群友推荐使用ReText,基于Python的,同时依赖了Python的几个包,通过easystall可以方便地安装,同时制作了快捷启动方式,网上找了篇文章以备忘。
Installation
- Download and install the latest version of Python (3.3.0: x86 or amd64).
- Download and install PyQt for your Python version from riverbankcomputing.co.uk.
Time to update your computer's Environmental Variables:
- Click Start, right-click My Computer and select Properties.
- Click Environment Variables.
For System Variables, click New. Then add:
PYTHONPATH=C:\Python33\Lib\;C:\Python33\Lib\site-packages\
Select the System Variable
PATH, click Edit.- Update the PATH by adding
C:\Python33;C:\Python33\Lib\site-packages\PyQt4\bin;to the front of it, like so:PATH=C:\Python33;C:\Python33\Lib\site-packages\PyQt4\bin;etc.
Download and run distribute_setup.py which will install
distributepackage, which provideseasy_installtool.Time to install additional Python libraries.
- Select Start -> Run
cmdthencd \Python33\Tools\Scripts. Enter:
easy_install Pygments
easy_install ElementTree
easy_install Markdown
easy_install docutils
easy_install Markups
- Select Start -> Run
Download and unpack ReText
- Download and unpack ReText icons pack
- Place the unpacked icons into the
ReText\iconsfolder - Run
cmdthen cd to the ReText folder. Then enter:python3 retext.py
Creating a Launch Shortcut
If you wish to ReText to have a Shortcut to start it. Then you can pin it to your Start menu, copy to your Desktop or Quick Launch, etc.
For local installs
- Right-click drag-n-drop the retext.py and select "Create shortcuts here"
- Adjust the properties of the shortcut
- Change the Shortcut tab: Target:
C:\python33\pythonw.exeretext.py's path; Run = minimized ; Change Icon (to whatever you like). - Change the General tab: rename it to "ReText"
If you wish for the python shell box to not appear, you should follow the USB Stick Batch file instructions at the moment.
For USB Sticks
- Copy
C:\python33to USB Stick, sayU:\python33 - Put ReText on the stick
Create the following BAT file:
retext.batREM ReText Startup batch file
REM -------------------------
REM determine drive letter of batchfile
for /f "delims=\" %%d in ('cd') do set curdrv=%%d
echo %curdrv%
REM Set ENVs using current drive letter if ENVs not set for USB Sticks
REM REM them out if you have the ENVs set
set PYTHONPATH=%curdrv%\Python33\Lib;%curdrv%\Python33\Lib\site-packages
set PATH=%curdrv%\Python33;%curdrv%\Python33\Lib\site-packages\PyQt4\bin;%PATH%
REM Start ReText
start /B %curdrv%\Python33\pythonw.exe %CD%\retext.pyRight-click drag-n-drop the retext.bat and select "Create shortcuts here"
- Adjust the properties of the shortcut
- Change the Shortcut tab: Run = minimized ; Change Icon (to whatever you like)
- Change the General tab: rename it to "ReText"
Notables
- Install performed without a proxy.
easy_installrequires an internet connection. You're on your own dealing with a proxy. As there's really no Registry Entries, you could install else where and copy to USB Stick and create the batch file. - Tested on Windows XP 32-bit. Untested with ActiveState Python, so adjust your steps accordingly.
Windows 下安装ReText的更多相关文章
- 在windows下安装gulp —— 基于 Gulp 的前端集成解决方案(一)
相关连接导航 在windows下安装gulp —— 基于 Gulp 的前端集成解决方案(一) 执行 $Gulp 时发生了什么 —— 基于 Gulp 的前端集成解决方案(二) 常用 Gulp 插件汇总 ...
- Windows 下安装 MongoDB
Windows 下安装 MongoDB 的步骤:1.官网www.mongodb.com下载安装包或zip包2.解压下载的文件到文件夹 D:\mongo .3.使用管理员权限打开CMD,导航到目录 D: ...
- Coreseek Windows下安装调试
由于项目需要全文检索,后面就去网上查了下资料,找到了Sphinx[中文是狮身人面像]这个全文检索引擎,听说挺好用的,不过没有中文分词.后面又去找了一下,找到了Coreseek,一款中文全文检索/搜索软 ...
- 从零开始学 Java - Windows 下安装 Tomcat
谁都想分一杯羹 没有一个人是真正的无私到伟大的,我们试着说着做自己,与人为善,世界和平!殊不知,他们的真实目的当你知道后,你会被恶心到直摇头并下意识地迅速跑开,下辈子都不想见到他.不过,他没错,你也没 ...
- 从零开始学 Java - Windows 下安装 JDK
关于未来 "我要死在火星.在我死去的时候能够想着人类能有一个美好的未来--有可持续的能源,同时能够殖民其他的星球来避免人类灭绝的最坏可能." 官网下载 直接打开官网:http:// ...
- windows下安装nginx
说起开发,自己感到非常惭愧,由于公司让我给<绿电侠>项目写整体架构解决方案,才开始接触nginx这个东东,突然觉得它是一把非常好的利器. 本文主要记录在windows下安装nginx,另参 ...
- Redhat/Ubuntu/Windows下安装Docker
Redhat/Ubuntu/Windows下安装Docker 什么是Docker Docker是Docker.inc公司开源的一个基于LXC技术之上构建的Container容器引擎,基于Go语言并遵从 ...
- Windows下安装Redis
1.首先,Redis官方是支持Linux系统的,我这里不多说,需要的可以参考:http://www.oschina.net/question/12_18065/ 2.Windows 64位下载地址:h ...
- 【转】linux和windows下安装python集成开发环境及其python包
本系列分为两篇: 1.[转]windows和linux中搭建python集成开发环境IDE 2.[转]linux和windows下安装python集成开发环境及其python包 3.windows和l ...
随机推荐
- Session的常用场景
session :存储浏览器sessionID值保存在客户端,sessionID的key:data 数据存储在服务器上 会话管理,用户登录验证,权限访问控制,购物车,临时数据.
- hibernate 1对1的关系
hibernate 中1对1的关系分为外键关联和主键关联 外键关联: //多方 public class Students { ...
- 根据条件决定是否为input设置只读属性
代码如下: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <tit ...
- azkaban编译安装配置文档
azkaban编译安装配置文档 参考官方文档: http://azkaban.github.io/azkaban/docs/latest/ azkaban的配置文件说明:http://azkaban. ...
- wireshark使用相关问题
问题1: 打开wireshark,没有出现过滤器 解决1: 使用管理员方式登录 过滤: http and ip.src == 192.168.0.10 and ip.dst == 192.168.0. ...
- 两个onCreate方法?你真的了解onCreate()么?
Activity的onCreate方法一直是我们编写一个activity最先重载的方法.细心的小伙伴在编写代码的时候回看到这样一幕: 咦,这里怎么会有两个onCreate提供给我们重载?选择困难症患者 ...
- hibernate经常报的几个不起眼的错误, 都是因为不细心或者手滑了输入有误造成了
最近会经常用到hibernate了, 也经常报错, 看着屏幕上一根大红条是非常不爽的, 这几天集合了一下经常报的错误, 整合一下放到这里, 以后再出现这个错误直接去解决就好了 1, org.hiber ...
- 运行代码后出现Process finished with exit code 0是为什么?
Process finished with exit code 0 意味着你的程序正常执行完毕并退出. 可以科普一下exit code,在大部分编程语言中都适用: exit code 0 表示程序执行 ...
- 操作系统——MiniDos
#include <stdio.h> #include <string.h> #include <windows.h> ],token[],ch,sa[]; ]={ ...
- Underscore模版引擎的使用-template方法
之前项目里有遇到在DOM中增加大量的html结构的时候,傻乎乎的在js中写一堆模版,然后用replace一个一个做替换.当时就是难看了点,不觉得啥,现在了解了模版引擎之后回头来看真的比较捉急了,以后是 ...