In Ubuntu, The SciTE installation method is sudoapt-getinstallscite. After the installation is completed, the Chinese characters in the editing file are displayed as garbled characters. In the Scite build output window, garbled characters 2008-09-13Linux can be found. You can view the comments by setting options, to match the locale of the buildshell of scite. In fact, build is a Shell window, where you can execute commands through Options-& gt; Lo
How to install SciTE in Ubuntu:
Sudo apt-get install scite
After the installation is complete, the Chinese characters in the editing file are garbled. Find
Scite build output window garbled
Linux view comments
You can set options to match the locale of the scite build shell.
In fact, build is a Shell window where you can execute commands
Use Options-> Local Option File (this creates SciTE. properties in the current working directory)
Or User Option File (User configuration Directory Creation ~ /. SciTEUser. properties)
Or Global Option File (/usr/share/scite/SciTEGlobal. properties)
We recommend that you do not change the global configuration of the system.
Add
Output. code. page = 65001
Of course, for example, make sure that your Shell language configuration is UTF-8
LANG = zh_CN.UTF-8
For other codes, see modify
Output. code. page = 936 # Simplified Chinese GBK
Output. code. page = 950 # BIG5, a traditional Chinese character
According to the content in the article, call up SciTE's Global options file and make the following modifications:
Code. page = 936
Character. set = 134
LC_CTYPE = en_US.UTF-8
Output. code. page = 936
Then, the Chinese text is displayed normally.
--------------------------------------------------------------------------------
"Scite configuration"
Modify SciTEUser. properties or SciTE. properties.
1. Text Encoding
By default, SciTE appears to be encoded in Western languages, so that a Chinese character is considered as two single-byte characters.
UTF-8: code. page = 65001
Gb k: code. page = 936
Big5: code. page = 950
2. line feed
Because SciTE is generally used to write code, the default setting does not contain line breaks.
Wrap = 1
3. Maximize windows
The default window is a long bar, which does not conform to common habits.
Position. width =-1
Position. height =-1
4. working directory
SciteDefaultHome = the directory where SciTE is located
5. Minimize to System Tray
Minimize. to. tray = 1
6. Leave the end Of the file empty.
In the default setting, the vertical slide bar cannot scroll down when the cursor is in the last line of the file.
End. at. last. line = 0
7. tool bar
By default, the toolbar is not displayed, and the shortcut key may be better.
Toolbar. visible = 1
8. Status Bar
Status Bar is not displayed by default.
Statusbar. visible = 1
9. Select some colors
They are the foreground and the background colors.
Selection. fore = # FFFFFF
Selection. back = # 0080FF
10. Set the syntax prompt
In addition to the default syntax prompt, you can also add a syntax prompt type by adding an API file. The location of the API file must be specified. I suggest creating an api directory in the working directory to store these files. $ (SciteDefaultHome) indicates the working directory.
For example
Api. *. c = $ (SciteDefaultHome) \ api \ c. api
Api. *. py = $ (SciteDefaultHome) \ api \ python. api
Api. *. php = $ (SciteDefaultHome) \ api \ php. api
11. Set the Tab
The default value is to reduce the number of 8 bits. It is best to change it to 4 bits.
Tabsize = 4
Indent. size = 4
12. Search in files
Search for *. c, *. cxx, and *. h files by default.
Find. files = *.*
13. Automatic completion
Autocompleteword. automatic = 1
14. Automatically complete XML tags
Xml. auto. close. tags = 1
15. Display recently opened files
Save. recent = 1
16. Set Home/End
By default, it jumps to the beginning and end of a logical line, even if the line feed is enabled.
Wrap. aware. home. end. keys = 1
Keyword Configuration:
Edit the abbrev. properties file and define the acronyms in the following format.
Acronyms = complete words
For example, Calon = Remainder Book
After editing, enter "Calon" and press Ctrl + B. The Remainder Book will be replaced automatically.
If you want the cursor to position outside the end of the word after the replacement, use the pipe character "|" to indicate the position.
For example, Calon = Remainder | Book