歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 14 下安裝 sciTE 編輯器(類似 NotePad++)

Fedora 14 下安裝 sciTE 編輯器(類似 NotePad++)

日期:2017/2/28 16:07:36   编辑:Linux教程

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
-----------------
感覺還可以,不過沒有函數列表,有些遺憾。

Copyright © Linux教程網 All Rights Reserved