From:http://sv002.blog.163.com/blog/static/1316823620101020411367/

作为编程语言尤其是简易脚本语言的轻量级的编辑器,SciTE无疑是一种很好的选择,它整个的大小不到3M,功能却不弱。

软件从 这里 下载(http://www.scintilla.org/SciTEDownload.html)

你可以选择相应的版本(Windows或者Linux,安装版或者绿色版),至于

Archlinux 可以简单的使用命令安装: pacman -S scite

或者你想使用专用语言版本,比如AutoIt或者AutoHotKey, 下载SciTE4AutoHotKey v3 下载SciteAutoIt3 ,网上可是帮你基本设置好了的。

好了,接着说重点,嘿嘿。

要想 显示编辑中文 ,有几个地方设置一下:

运行SciTE,点Option->Open User Options File,增加两行:

code.page=65001 output.code.page=65001

这是使用UTF-8编码,或者如果你使用GBK、GB2312(Windows下一般都是),那就是:

code.page=936

output.code.page=936

然后保存(File->Save)。如果临时需要用UTF-8,点File->Encoding->UTF-8。

是不是正常了!

字体太小? 再增加:

font.base=font: ! Monaco,size:20

font.small=font: ! Monaco,size:16

font.comment=font: ! Monaco,size:18

font.monospace=font: ! 文泉驿微米黑,size:20

font.code.comment.box=$(font.comment)

font.code.comment.line=$(font.comment)

font.code.comment.doc=$(font.comment)

font.code.comment.nested=$(font.comment)

font.text=font:!Monaco,size:20

font.text.comment=font:!Monaco,size:18

font.embedded.base=font:!Monaco,size:20

font.embedded.comment=font:!Monaco,size:20

把上面的字体替换成你喜欢的, 注意了 ,"font:"后面的“ ! ”千万要有,否则中文出不来了,我就是丢了它,结果好半天没搞定,吐血...



中文界面的实现

下载中文语言包,可惜SciTE官方网站提供的链接国内根本难以连上,不过没关系,前文所述 下载SciTE4AutoHotKey v3的包里就有中文语言包(在包里locales的目录下"Simplified Chinese.locale.properties"), 直接拿过来用就好。 我把它改名为"zh_CN.properties",嘿嘿。

有两个方法设置:

1.将下载的语言包复制到你的SciTE安装目录,改名为locale.properties

2.将下载的语言包复制到你的SciTE安装目录,在User Options File中增加一行:

locale.properties=zh_CN.properties

我的语言包改名了 "zh_CN.properties",所以 上面等号右边就是它了,这种方法的好处是你可以随时在多个菜单语言间切换。



最后看看我的User Options File 内容:



#1、文字编码

#SciTE 默认似乎是采用西方语言编码的,这样会把一个中文字符视为两个单字节字符。



#UTF-8code.page=65001

#GBK:code.page=936

#Big5:code.page=950

locale.properties=zh_CN.properties

code.page=65001

output.code.page=65001



#2、换行

#由于 SciTE 一般用于编写代码,所以默认设置是不换行的。



wrap=1



#3、窗口最大化

#默认窗口是长条形,不符合通常的习惯。



position.width=-1

position.height=-1



#4、工作目录



SciteDefaultHome=~



#5、最小化到系统托盘



minimize.to.tray=1



#6、文件尾留空

#默认设置中,光标在文件最后一行时垂直滑动条无法再向下滚动,不符合使用习惯。



end.at.last.line=0



#7、工具条

#默认不显示工具条,可能是觉得快捷键更好吧。



toolbar.visible=1



#8、状态条

#默认不显示状态条。



statusbar.visible=1



#9、选中部分颜色

#分别为前景色和后景色,都换成了我习惯用的颜色。



selection.fore=#FFFFFF

selection.back=#0080FF



#10、设置语法提示

#除了默认的语法提示之外,还可以通过新增 API 文件增加语法提示种类。需要告诉程序 API 文件的位置。我建议是在工作目录中新建一个 api 目录,专门存放这些文件。$(SciteDefaultHome) 表示工作目录。



#如

api.*.c=$(SciteDefaultHome)\api\c.api

api.*.py=$(SciteDefaultHome)\api\python.api

api.*.php=$(SciteDefaultHome)\api\php.api



#11、设置 Tab

#默认是缩排8位,最好是统一改为4位。



tabsize=4

indent.size=4



#12、文件中搜索

#默认搜索 *.c、*.cxx 和 *.h 文件。



find.files=*.*



#13、自动完成



autocompleteword.automatic=1



#14、自动补全 XML 标签



xml.auto.close.tags=1



#15、显示最近打开的文件



save.recent=1



#16、设置 Home/End

#默认跳至逻辑行的行首和行尾,即使打开了自动换行。



wrap.aware.home.end.keys=1



#缩略词配置:

#编辑 abbrev.properties 文件,按照如下格式定义缩略词。



#缩略词=完整词句



#如 Calon=Remainder Book



#编辑后输入“Calon”后按下 Ctrl+B,则自动替换为 Remainder Book。



#如果想让光标在替换之后定位在词尾之外的位置,则用一个管道符“|”指示该位置。



#如 Calon=Remainder|Book



#17 字体设置



font.base=font:!Monaco,size:20

font.small=font:!Monaco,size:16

font.comment=font:!Monaco,size:18

font.code.comment.box=$(font.comment)

font.code.comment.line=$(font.comment)

font.code.comment.doc=$(font.comment)

font.code.comment.nested=$(font.comment)

font.text=font:!Monaco,size:20

font.text.comment=font:!Monaco,size:18

font.embedded.base=font:!Monaco,size:20

font.embedded.comment=font:!Monaco,size:20

font.monospace=font:!文泉驿微米黑,size:20

font.vbs=font:!Monaco,size:18



我把中文语言包的内容也贴上来了,方便不想再去下载的懒虫,复制保存就可。感谢制作语言包的各位大大:



# locale.properties by Neil Hodgson neilh@scintilla.org

# Placed in the public domain 2001



# locale.properties defines the localised text for the user interface

# Some definitions are commented out because they duplicate another string

# The format of each line is original=localised, such as File=&Fichier

# Even though the original text may have ellipses "..." and access key

# indicators "&" in the user interface, these do not appear in this file

# for the original texts. Translated texts should have an access key indicator

# if needed as the translated text may not include the original access key.

# Ellipses are automatically added when needed.

# Each original text may have only one translation, even if it appears in

# different parts of the user interface.



# Please state any further license conditions and copyright notices you desire.

# If there are no further notices then contributed translations will be assumed

# to be made freely available under the same conditions as SciTE.



# 2002/02/03 before 1.43 Translated by Chii Liao (廖啟邑)

# 2003/11/07 1.44-1.56   Translated by Daniel Lin(daniel@twpda.com)

# 2005/03/12 1.57-1.62   Translated by Edward Hsieh(edwardsayer at pchome dot com dot tw)

# 2005/09/03 1.63-1.66   Translated and corrected by 龔維正 in Taipei County.

# 2005/10/02 1.66   Translated and corrected by linnchord(高显华) in Shanghai China. 参考繁体版修改.

# 2006/04/03 1.67-1.68   Translated and corrected by Calon Xu(calon.xu@gmail.com, http://calon.weblogs.us/) in China Mianland. Based on 1.66 traditional and simplified Chinese locale.properties.

# 2007/08/21 1.69-1.74    Translated and corrected by emlvvh(emlvvh@gmail.com) in Beijing, China. Based on simplified Chinese locale.properties.

translation.encoding=UTF-8



# 在 GBK环境下, SciTEGlobal.properties 要作下列修改

# 让倒退键运作正常

# code.page=936

# 我的设置是 code.page=65001,没有出现以上情况,如果您发现存在此问题,再按照如上说明修改。(by Calon)



# Menus



# File menu

File=文件(&F)

New=新建(&N)

Open=打开(&O)

Open Selected Filename=根据所选文件名打开(&F)

Revert=返回上次保存状态(&R)

Close=关闭(&C)

Save=保存(&S)

Save As=另存为(&A)

Export=导出(&E)

As HTML=为 HTML 文件(&H)

As RTF=为 RTF 文件(&R)

Page Setup=页面设置(&U)

Print=打印(&P)

Load Session=载入文件列表(&L)

Save Session=保存当前文件为文件列表(&V)

Exit=退出(&X)



# Edit menu

Edit=编辑(&E)

Undo=撤销(&U)

Redo=重复上次动作(&R)

Cut=剪切(&T)

Copy=复制(&C)

Paste=粘贴(&P)

Delete=删除(&D)

Select All=全选(&A)

Copy as RTF=复制为 RTF(&F)

Match Brace=跳至对应的括号(&B)

Select to Brace=选取括号内容(包含括号)(&O)

Show Calltip=显示函数提示(&H)

Complete Symbol=补齐符号(&Y)

Complete Word=补齐文字(&W)

Expand Abbreviation=展开缩略语(&E)

Block Comment or Uncomment=增加/消去行首注释符(&M)

Box Comment=区块首尾及行首加注释符(&X)

Stream Comment=区块首尾加注释符(&N)

Make Selection Uppercase=转为大写(&S)

Make Selection Lowercase=转为小写(&L)



# Search menu

Search=搜索(&S)

Find=查找(&F)

Find Next=查找下一个(&N)

Find Previous=查找上一个(&S)

Find in Files=在文件中查找(&I)

Replace=替换(&E)

Next Bookmark=下一个书签(&M)

Previous Bookmark=上一个书签(&V)

Toggle Bookmark=设置/清除书签(&K)

Clear All Bookmarks=清除所有书签(&C)



# View menu

View=查看(&V)

Toggle current fold=折叠/展开(&C)

Toggle all folds=全部折叠/展开(&A)

Full Screen=全屏(&N)

Tool Bar=工具栏(&T)

Tab Bar=标签栏(&B)

Status Bar=状态栏(&S)

Whitespace=空白符(&W)

End of Line=换行符(&E)

Indentation Guides=缩排(&I)

Line Numbers=行号(&L)

Margin=书签页边列(&M)

Fold Margin=折叠状态列(&F)

Output=输出窗口(&O)

Parameters=参数(&P)



# Tools menu

Tools=工具(&T)

Compile=编译(&C)

Build=调试(&D)

Go=执行(&G)

Stop Executing=中止执行(&S)

Next Message=下一个消息(&N)

Previous Message=上一个消息(&P)

Clear Output=清除输出窗口(&O)

Switch Pane=切换窗格(&S)



# Options menu

Options=选项(&O)

Always On Top=保持在顶层(&A)

Vertical Split=窗格垂直并列(&S)

Line End Characters=设置换行符(&L)

CR + LF=CR + LF(&+)

CR=CR(&C)

LF=LF(&L)

Convert Line End Characters=转换换行符(&C)

Change Indentation Settings=更改缩排设置(&T)

Use Monospaced Font=使用等宽字体(&M)

Open Local Options File=打开 Local Options 文件(&O)

Open User Options File=打开 User Options 文件(&U)

Open Global Options File=打开 Global Options 文件(&G)

Open Abbreviations File=打开 Abbreviations 文件(&B)



# Language menu

Language=语言(&L)



# Buffers menu

Buffers=缓冲区文档(&B)

Previous=上一个文档(&P)

Next=下一个文档(&N)

Close all=全部关闭(&C)



# Help menu

Help=帮助(&H)

About Sc1=关于 SciTE4AutoHotkey Lite(&S)

About SciTE=关于 SciTE4AutoHotkey(&A)



# Dialogs



# Generic dialog

OK=确定

Cancel=取消

Yes=是

No=否



# About dialog

About SciTE=关于 SciTE4AutoHotkey

# This is to add something like: Swahili translation 1.41.1 by Neil Hodgson

TranslationCredit=Chinese translation v1.43-1.74 by\n    Chii Liao\n    Daniel Lin\n    Edward Hsieh\n    Gong Weizheng\n    Linnchord\n    Calon Xu\n    emlvvh

Contributors:=



# Open, Save dialogs

Open File=打开文件

Save File=保存文件

Save File As=另存为...

Export File As HTML=导出为 HTML 文件

Export File As RTF=导出为 RTF 文件

Save Current Session=保存当前打开的文件为文件列表

Custom Filter=自定义文件类型



# Find in Files dialog

#Find in Files=在眾檔中尋找

Find what:=输入查找字符(&N)

Files:=文件(&I)

#Find=



# Go To dialog

Go To=跳至(&G)

Destination Line Number:=目的行号(&D)

Current line:=当前行号

Last line:=前一次行号



# Indentation Settings dialog

Indentation Settings=缩排设置

Tab Size:=制表符宽度(&T)

Indent Size:=缩进宽度(&I)

Use tabs:=使用制表符(&U)



# Replace and Find dialogs

Replace=替换(&R)

#Find=

Find what:=输入查找字符(&N)

Replace with:=替换为(&P)

Match whole word only=全字符匹配(&W)

Match case=区分大小写(&C)

Regular expression=使用正则表达式(reg. exp.)(&E)

Wrap around=循环查找(&O)

Transform backslash expressions=使用反斜线(&B)

Find Next=查找下一个(&F)

Replace All=全部替换(&A)

Replace in Selection=在选取文字中替换(&S)

#Close=

Direction=查找方向

Reverse direction=反向查找

Up=向上

Down=向下



# Parameters dialog

Execute=执行

Set=设置(&S)



# Other UI strings

Untitled=无标题



# Properties used in global options

Text=纯文本

All Source=源代码

All Files (*.*)=所有文件 (*.*)



# Messages

# Messages may contain variables such as file names or search strings indicated

# by ^0 which are replaced by values before display. ^1, ^2, ... may be used in the future.

Can not find the string '^0'.=找不到 '^0'。

Find string must not be empty for 'Replace All' command.=全部替换时查找内容不能空白。

Selection must not be empty for 'Replace in Selection' command.=在选取的文字中替换时一定要先选取文字。

No replacements because string '^0' was not present.=没有找到字符 '^0',未完成替换。

Could not open file '^0'.=无法打开 '^0'。

Could not save file '^0'.=无法保存 '^0'。

Save changes to '^0'?=文件已被更改,是否要保存为 '^0'?

Save changes to (Untitled)?=文件已被更改,是否保存为 无标题 ?

The file '^0' has been modified. Should it be reloaded?=文件 '^0'已被更改过,是否重新载入?

Bad file.=损坏文件。

Failed to create dialog box: ^0.=无法开启 ^0 对话框。

Can not start printer document.=无法打印。

URI '^0' not understood.=不能解析 '^0' URI。

Invalid directory '^0'.=无效的目录/文件夹 '^0'。



# 1.42

Directory:=目录(&D)

Wrap=自动换行(&W)

Hide=隐藏(&H)

Check if already open=检查文件是否已经打开(&H)



# 1.43

Find string must not be empty for 'Replace in Selection' command.=在选取的文字中替换时查找内容不能为空白。

List Macros=列出所有宏

Run Current Macro=执行当前宏

Record Macro=录制宏

Stop Recording Macro=停止录制宏

SciTE4AutoHotkey Help=SciTE4AutoHotkey 文档(&S)

Sci4AutoHotkey Lite Help=SciTE4AutoHotkey Lite 帮助

Edit Properties=编辑选项

Wrap Output=输出时自动换行(&P)



# 1.44

Read-Only=只读(&R)

READ=读入



# 1.46

As TeX=为 TeX 文件

Export File As TeX=导出为 Tex 文件

Save a Copy=保存副本(&P)



# 1.47

As LaTeX=为 LaTeX 文件(&L)

Export File As LaTeX=导出为 TeX 文件

Encoding=编码

8 Bit=8位元

UCS-2 Big Endian=

UCS-2 Little Endian=

UTF-8=



# 1.49

Save All=全部保存(&S)

Browse=浏览(&B)

Select a folder to search from=选择要查找的目录/文件夹

UTF-8 Cookie=



# 1.50

Insert Abbreviation=插入缩略语(&I)

Abbreviation:=缩略语:

Insert=插入

Mark All=标记搜索结果(&M)



# 1.51

In Selection=在选定区域

Paragraph=段落(&G)

Join=合并(&J)

Split=分割(&S)



# 1.52

Block comment variable '^0' is not defined in SciTE *.properties!=行首的注释符号 '^0' 没有在 SciTE *.properties 中定义!

Box comment variables '^0', '^1' and '^2' are not defined in SciTE *.properties!=区块首尾和其中各行首的注释符号  '^0' 、 '^1' 、 '^2' 没有在 SciTE *.properties 中定义!

Stream comment variables '^0' and '^1' are not defined in SciTE *.properties!=区块首尾的注释符号 '^0' 及 '^1' 没有在 SciTE *.properties 中定义!

The file '^0' has been modified outside SciTE. Should it be reloaded?=文件 '^0' 已经被其他程序修改过,是否要重新载入?

As PDF=为 PDF 文件(&P)

Export File As PDF=导出为 PDF 文件



# 1.53

Version=

by=



#1.54

Incremental Search=即输即查(&L)

Search for:=即输即查



#1.55

Could not save file '^0'. Save under a different name?=无法保存 '^0' 文件,是否更名另存?



#1.56

As XML=为 XML 文件(&X)

Export File As XML=导出为 XML 文件



#1.57

Destination Line:=目的行(&D)

Column:=目的栏(&C)



#1.58

Replacements:=替换:

Open Files Here=在此打开文件(&H)



#1.59



#1.60



#1.61

File '^0' is ^1 bytes long,\nlarger than the ^2 bytes limit set in the properties.\nDo you still want to open it?=文件 '^0' 的长度为 ^1 字节,\n超过了 properties 文件中\n ^2 字节的限制,您仍要打开\n它吗?

Open Lua Startup Script=打开 Lua Startup Script

All Files (*)=所有文件(*)

Hidden Files (.*)=隐藏文件(.*)



#1.62

Show hidden files=显示隐藏文件



#1.63

Replace in Buffers=在缓冲区中替换(&U)

Find string must not be empty for 'Replace in Buffers' command.=在缓冲区中替换时查找内容不能为空。

Search only in this style:=仅以此样式查找:



#1.67

Duplicate=重复当前行(&D)



#1.72

Convert=转换(&C)



#1.73

Code Page Property=系统内码

UTF-8 with BOM=带 BOM 的 UTF-8

Open Directory Options File=打开 Directory Options 文件(&D

SciTe 中文设置(解决乱码,中文界面)相关推荐

  1. Node响应中文时解决乱码问题

    场景 在使用node响应英文时可以在app.js中这样写 //代码块: node-http-server//表示引入http模块 var http = require('http'); /*reque ...

  2. VS code 下载加速 中文设置 中英文切换 中文注释乱码

    1.下载加速 访问官网 Download Visual Studio Code - Mac, Linux, Windows https://code.visualstudio.com/Download ...

  3. Ubuntu中文设置与安装中文输入法(超详细)

    一.中文设置 点击界面右上角的倒三角符号,选择"Settings" 搜索"lagnguage" 点击"Manage Installed Languag ...

  4. php输入中文就乱码,在php图片中输入中文文字解决乱码

    代码: $im = imagecreatefromjpeg("ok.jpg"); $black = @imagecolorallocate($im, 0,0,0); $jpgnum ...

  5. 一行一行的读取txt中文文本(解决乱码问题)

    最近用MFC编Bayes文本分类器,需要将停用词从txt文件中依次读出来(每行一个词),用其本身的CStdioFile类的ReadString函数虽然可以一行一行读入文本,但到程序中就成了乱码,采用一 ...

  6. spring boot html乱码,Spring-boot 字符集设置 解决乱码方案

    使用spring-boot开发时候,有时候程序没事,往往不经意会造成中文到前端变成乱码(????这样情况) 下面给出spring-boot项目统一字符集设置方案: 1.Spring Boot修改编码方 ...

  7. puppy linux中文设置,Puppy Linux 中文支持包制作方法

    chali20122012-02-02 15:23 博主您好!我有个问题,u-boot-1.3.4移植到S3C2416开发板上,使用TFTP下载时得到这样的提示: SAM2416EDK # tftp ...

  8. mysql中gbk编码汉字和英文_MySQL字符集 GBK、GB2312、UTF8区别 解决 MYSQL中文乱码问题...

    MySQL中涉及的几个字符集 character-set-server/default-character-set:服务器字符集,默认情况下所采用的. character-set-database:数 ...

  9. mysql gbk_MySQL字符集 GBK、GB2312、UTF8区别 解决MYSQL中文乱码问题

    MySQL字符集 GBK.GB2312.UTF8区别 解决MYSQL中文乱码问题 更新时间:2012年08月27日 21:17:11   作者: MYSQL中文乱码问题原因有很多,脚本之家以前发布过很 ...

  10. 初识 JSP---(Servlet映射 / ServletRequest / get与post区别 / 解决乱码)

    Servlet映射的细节 同一个Servlet映射多个URL上,即多个<Servlet-mapping>元素的<servlet-name>子元素的设置值可以是同一个Servle ...

最新文章

  1. Struts2 整合jQuery实现Ajax功能(2)
  2. 文本基线怎样去掉_ICML 2020 | 基于类别描述的文本分类模型
  3. 在SAP中进行黏贴时必须要把之前的数据删掉后才能黏贴,不能直接使用黏贴来覆盖之前的数据,这个怎麼解?
  4. mac睡眠快捷键_告别Mac新手,MacOS电脑高手不得不会的10个使用技巧!
  5. Dotnet洋葱架构实践
  6. HDU Problem 4857 逃生【拓扑排序+优先队列】
  7. jsp页面javascript没反应
  8. python3写的一个检测远程服务器端口脚本
  9. docker 中 安装 openssh-server
  10. 生成VOC2012数据集
  11. Windows驱动开发TraceView之日志打印
  12. 用idea使用struts和hibernate来实现CRUB的操作
  13. HDU 6319 Ascending Rating(单调队列)
  14. 详解区块链(很详很长)
  15. Local time zone must be set--see zic manual page 2017
  16. 重复启动Tomcat时,大概率出现Deploying web application direct
  17. 第三届长沙 · 中国 1024 程序员节:共迎算力新时代,开源新未来
  18. GitLab安装使用(SSH+Docker两种方式)
  19. 基于Python的OCR图像识别
  20. golang的iris安装_go iris学习日记(一)

热门文章

  1. 让我们唠一唠:微信有哪些功能越来越不行了呢?
  2. SQL server安装时:“以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前必须重新启动计算机”错误
  3. NMOS PMOS
  4. windows7下安装docker详细步骤
  5. Python:定时运行脚本
  6. 设计原则(5)-迪米特法则
  7. 本题要求实现一个函数,对给定的正整数N,打印从1到N的全部正整数。
  8. 实训|第三天Linux登录界面的修改以及Richard Stallman、自由软件运动
  9. 【Web开发】Python实现Web服务器(Ubuntu下Flask使用MySQL数据库)
  10. 0代码,不用app Arduino esp32cam 远程控制Web Server视频小车