當前位置:編程學習大全網 - 編程語言 - 如何使用scite編程C++?

如何使用scite編程C++?

下載解壓後直接使用

就下載可執行文件的zip壓縮包,includes the SciTE executable, any required DLLs, configuration files and documentation.

After downloading the file, unzip it, and run SciTE.EXE.

The files required to run SciTE are SciTE.EXE, SciLexer.DLL, and SciTEGlobal.properties and these are best located in one directory on the path.

添加SciTE到右鍵菜單

2.添加SciTE到右鍵菜單,方便右鍵直接打開文檔。

把以下內容拷到任意以.reg結尾的文件中,後執行即可。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\SciTE]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\SciTE\command]

@="D:\\Program Files\\wscite\\SciTE.exe %1"

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

設置user options file

3. 設置user options file.

不要修改全局文件,global is for the default settings with new versions - it is overwritten. Scite user is not and therefore makes it easier to retain the settings between version updates.

user options file 在用戶的home目錄下面,即環境變量 %USERPROFILE% 所對應的目錄。

把下面的內容拷貝到user options file, 菜單Options->Open User options file.

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

# 多數情況,值設成1表示啟用某個功能,設成0表示不啟用某個功能.

# "#"開頭的行是註釋,scite在解析時會忽略。

# Internationalisation

# Chinese input code page 936 and ShiftJIS character set 134

code.page=936

character.set=134

output.code.page=936

# Required for Unicode to work on GTK+:

#LC_CTYPE=en_US.UTF-8

# Wrapping of long lines

#Chooses between word wrapping (1, the default) and character wrapping (2). Character wrapping is a better choice for Asian languages with no spaces between words.

wrap=0

wrap.style=2

#窗口大小

position.width=640

position.height=600

#編輯區兩邊的留空

blank.margin.left=0

blank.margin.right=0

# 初始化時編輯區左邊,顯示行號列右側的邊距,書簽標誌就在這裏

margin.width=8

#工具欄,狀態欄可見

toolbar.visible=1

statusbar.visible=1

#顯示最近打開的文檔

save.recent=1

# 如果設置成1,當輸入壹個詞,如果文檔只有這個詞以該字符開始,就會顯示壹個自動完成選擇框,按Tab鍵就能完成自動輸入。

autocompleteword.automatic=1

# Indentation

tabsize=4

indent.size=4

# Sizes and visibility in edit pane

line.margin.visible=1

line.margin.width=2+

# 輸出區的位置及啟動scite文本編輯器時輸出區是否隱藏

split.vertical=0

output.initial.hide=1

# 標題欄顯示信息,0為文件名,1為全路徑,2為顯示文件名和目錄名。

title.full.path=1

## 當前文件被外部修改時自動重新載入

load.on.activate=1

# scite失去焦點時自動保存文檔。在某些時候這個選項很有用,比如切換到另外的程序去查看文檔編輯效果。

#save.on.deactivate=1

# 當load.on.activate=1時,啟用這個選項,重新載入時會先詢問妳

are.you.sure.on.reload=1

# 重新載入文檔時保留還原信息

reload.preserves.undo=1

#自動縮進

tabsize=4

indent.size=4

use.tabs=1

indent.auto=1

indent.automatic=1

indent.opening=1

indent.closing=1

tab.indents=1

backspace.unindents=1

#Check

check.if.already.open=1

#設置語法提示的路徑, Ctrl+I

api.*.pl=$(SciteDefaultHome)\perl.api

#api.*.cxx=d:\api\w.api

#默認設置中,光標在文件最後壹行時垂直滑動條無法再向下滾動,不符合使用習慣

end.at.last.line=0

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

修改perl.propertie

4. Perl語言的語法高亮太難看了,修改perl.properties下幾行:

# Scalars: $var

#~ style.perl.12=fore:#000000,back:#FFE0E0

style.perl.12=fore:#0011FF

# Array: @var

#~ style.perl.13=fore:#000000,back:#FFFFE0

style.perl.13=$(style.perl.12)

# Hash: %var

#~ style.perl.14=fore:#000000,back:#FFE0FF

style.perl.14=$(style.perl.12)

# Symbol table: *var

#~ style.perl.15=fore:#000000,back:#E0E0E0

style.perl.15=$(style.perl.12)

# Regex: /re/ or m{re}

#style.perl.17=fore:#000000,back:#A0FFA0

style.perl.17=fore:#DD11BB

# Substitution: s/re/ore/

#~ style.perl.18=fore:#000000,back:#F0E080

style.perl.18=$(style.perl.17)

#-------------------------------------------------

百度的,妳看對妳有沒有幫助

  • 上一篇:交通的手抄報上寫什麽內容
  • 下一篇:銷售可以轉行做什麽工作?
  • copyright 2024編程學習大全網