Fedora 14 下安装 sciTE 编辑器(类似 NotePad++)

Fedora 14 下安装类似 NotePad++的 sciTE 编辑器。

从官网上下载如下文件,放于同一目录

gscite228.tgzlocale.zh_cn.propertiesapi/*.api (自己创建api目录,关于api配置请参考官方说明)SciTEUser.properties(自己创建的个人配置文件),,参考内容如下:#option if you want to use the icons of the current GTK theme, personally I like the default icons#toolbar.usestockicons=1#auto maximize the windowposition.maximize=1#default tool bars, reminds me of NP++toolbar.visible=1#so you can see the full path of the file on toptitle.full.path=1#singleton instance ie I dont want to see many editors, opening files will simply create a new tabcheck.if.already.open=1#make teh status bar at the bottom visiblestatusbar.visible=1#this will save the last session, so when scite is fired up the files from the previous session are loaded.save.session=1#save list of recent files

save.recent=1

#simplified chinese #code.page=936 #character.set=134 if PLAT_GTK output.code.page=936 #UTF-8 code.page=65001 #LC_CTYPE=en_US.UTF-8

tabsize=4indent.size=4tabbar.multiline=1line.margin.visible=1autocompleteword.automatic=1find.replace.advanced=1fold.margin.colour=#0AFFDDfold.margin.highlight.colour=#FF0022highlight.current.word=1#highlight.current.word.by.style=1highlight.current.word.colour=#00AAFF#are.you.sure.on.reload=1if PLAT_GTK locale.properties=/usr/share/scite/locale.zh_cn.properties

----------------------------

linux 下快捷安装方法

解压 gscite228.tgztar -xzvf gscite228.tgz

将以下内容保存成 install_sciTE.sh#!/bin/bash

if [ $# -ne 1 ]; then echo “usage: $0 program_dir” echo “example: $0 gscite” exit 65fi

EXEDIR=/usr/local/binCONFDIR=/usr/share/scitePICDIR=/usr/share/pixmaps

cd $1cp -pf SciTE $EXEDIR/sciTEif [ ! -d $CONFDIR ]; then mkdir -p $CONFDIRficp -pf *.properties $CONFDIR

if [ ! -d $PICDIR ]; then mkdir -p $PICDIRficp -pf Sci48M.png $PICDIR

cd -cp -pf locale*.properties $CONFDIRcp -Rpf api/ $CONFDIR/apichmod 755 /usr/local/bin/sciTEchmod -R 755 $CONFDIRchmod -R 755 $PICDIR

cp -pf SciTEUser.properties /root/.SciTEUser.properties

exit#—————————————以root 用户chmod +x install_sciTE.sh./install_sciTE.sh gscite

按需要给其他系统用户添加个人配置文件,如cp -pf SciTEUser.properties /home/mayjie/.SciTEUser.properties-----------------感觉还可以,不过没有函数列表,有些遗憾。

人生就像一杯没有加糖的咖啡,喝起来是苦涩的,

Fedora 14 下安装 sciTE 编辑器(类似 NotePad++)

相关文章:

你感兴趣的文章:

标签云: