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

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

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

gscite228.tgz
locale.zh_cn.properties
api/*.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 window
position.maximize=1
 
#default tool bars, reminds me of NP++
toolbar.visible=1
 
#so you can see the full path of the file on top
title.full.path=1
 
#singleton instance ¡ª ie I dont want to see many editors, opening files will simply create a new tab
check.if.already.open=1
 
#make teh status bar at the bottom visible
statusbar.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=4
indent.size=4
tabbar.multiline=1
line.margin.visible=1
autocompleteword.automatic=1
find.replace.advanced=1
fold.margin.colour=#0AFFDD
fold.margin.highlight.colour=#FF0022
highlight.current.word=1
#highlight.current.word.by.style=1
highlight.current.word.colour=#00AAFF
#are.you.sure.on.reload=1
if PLAT_GTK
    locale.properties=/usr/share/scite/locale.zh_cn.properties

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

linux 下快捷安装方法

解压 gscite228.tgz
tar -xzvf gscite228.tgz

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

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

EXEDIR=/usr/local/bin
CONFDIR=/usr/share/scite
PICDIR=/usr/share/pixmaps

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

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

cd -
cp -pf locale*.properties $CONFDIR
cp -Rpf api/ $CONFDIR/api
chmod 755 /usr/local/bin/sciTE
chmod -R 755 $CONFDIR
chmod -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
-----------------
感觉还可以,不过没有函数列表,有些遗憾。

相关推荐