想必大家都用过EditPlus
,编辑过代码了吧。其默认的背景与代码颜色太难看了,那怎么拥有好看且舒服一点的高亮效果呢,这里我给大家介绍一种。其他读者可自行去官网搜寻。
首先,打开EditPlus
安装的目录文件夹,找到三个文件,依次是:editplus_u.ini
、editplus.inf
、setting_u.ini
。
editplus_u.ini
文件,用以下代码将其内容全部替换
[Options]
Workspace Path=
FtpCheck=0
Disconnect=0
Show hidden=0
Timeout=0
Maximize=1
Folding=1
Line Space=0
Delimiters=,.?!;:/<>(){}[]"'=
Save Workspace=0
Allow Multiple Instances=0
Close bracket=1
Lower Tag=0
External=0
Savedir=0
Alt Home=1
Blank=0
XHTML=1
Status_Full=0
Tab Index=0
Cliptext=5
Directory List=314
Filter Index=0
Project=0
Matching Brace=0
Custom colors=7BC22F00F08047008DB0D3003A8BDA00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF
Wrap find=1
Cliptext Window=243
Line Breaks=0
Invisibles=0
Drive Names=1
Subfolder=1
Lock Files=1
Output=145
FtpV2=0
Case=0
Restore=0
[Keystroke Recordings]
0=
1=
2=
3=
4=
5=
6=
7=
8=
9=
[Files]
MRU=8
Auto Save=0
Backup Dir=
Backup Extension=.bak
PC format=1
Encoding=65001
BOM=0
Backup=0
Backup Remote=0
Check Mofify=1
Reload=0
JScript=0
Prevent Editing=0
Save Temp File=0
Check invalid CR/LF=0
[Buttons\0]
Count=35
Button=000000006100000021000000010000007C0000000200000003000000FFFFFFFF050000000400000006000000FFFFFFFF0700000008000000090000000A000000FFFFFFFF0B0000000C000000FFFFFFFF0D0000000F0000003F00000040000000FFFFFFFF5A00000010000000110000001200000013000000FFFFFFFF30000000700000001F00000045000000FF
[Buttons\1]
Count=35
Button=1C000000FFFFFFFF2200000023000000240000004100000035000000FFFFFFFF26000000270000002800000025000000FFFFFFFF3400000032000000330000003600000031000000FFFFFFFF2F000000290000002D0000002E00000042000000FFFFFFFF81000000380000003900000043000000FFFFFFFF3B0000003C000000FFFFFFFF3A00000037000000FF
[Buttons\2]
Count=25
Button=460000004700000048000000490000004A000000FFFFFFFF4B0000004C0000004D0000004E0000004F000000FFFFFFFF6C000000FFFFFFFF5000000051000000520000005300000054000000FFFFFFFF5500000056000000570000005800000059000000FF
[Tool Option]
Right Cliptext=0
Top Selector=0
Middle button=1
Focus=1
Rows=1
Min=7
Max=18
[Colors\Text]
Foreground=16777215
Background=3482641
Default=0
[Colors\Active line]
Foreground=12632256
Background=4930087
Default=0
[Colors\Text selection]
Foreground=16777215
Background=12817520
Default=1
[Colors\Line number]
Foreground=12632256
Background=6374943
Default=0
[Colors\Ruler]
Foreground=8388608
Background=14079702
Default=1
[Colors\Cursor indicator]
Foreground=14079702
Background=8388608
Default=1
[Colors\Output window]
Foreground=0
Background=16777215
Default=1
[Colors\Tabs and spaces]
Foreground=12040119
Background=16777215
Default=1
[Colors\Line break]
Foreground=12040119
Background=16777215
Default=1
[Colors\Column marker]
Foreground=14079702
Background=16777215
Default=1
[Colors\Matching Brace]
Foreground=0
Background=16776960
Default=1
[Colors\Folding mark -]
Foreground=12040119
Background=16777215
Default=1
[Colors\Folding mark +]
Foreground=12040119
Background=16777215
Default=1
[Colors]
Sync=0
[Spell Checker]
Ignore Number=1
Ignore HTML=1
Ignore Url=1
Ignore All Capital=1
Ignore Mixed Case=1
[Fonts]
Edit Window=F4FFFFFF00000000000000000000000090010000000000000302013143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Printer=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Output Window=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Cliptext Window=F5FFFFFF0000000000000000000000009001000000000001000000005300650067006F006500200055004900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Document Selector=F5FFFFFF0000000000000000000000009001000000000001000000005300650067006F006500200055004900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 1=F1FFFFFF00000000000000000000000090010000000000000302013143006F006E0073006F006C0061007300000069007000740000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 2=F5FFFFFF000000000000000000000000900100000000000000000022560065007200640061006E00610000004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 3=F4FFFFFF000000000000000000000000900100000000000000000012540069006D006500730020004E0065007700200052006F006D0061006E0000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 4=F5FFFFFF0000000000000000000000009001000000000000000000224D0053002000530061006E0073002000530065007200690066000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 5=F3FFFFFF00000000000000000000000090010000000000FF000000315400650072006D0069006E0061006C00000065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Screen=20134
[Colors\URL]
Foreground=14322490
Background=16777215
Default=0
editplus.inf
文件,用以下代码将其内容全部替换[Version]
Signature="$CHICAGO$"
[DefaultInstall]
AddReg=editplus_AddReg
[editplus_AddReg]
hkcu,"%editplus1_SEEI%","INI directory",,"%01%\setting"
hkcu,"%editplus1_SEEI%","STX ACP CTL",,"%01%"
hkcu,"%editplus1_SEEI%","License",1,db,89,29,18,fd,5d,05,5e,78,9c,63,4d,\
2e,2a,ce,ae,94,35,b7,30,b7,74,d5,35,75,72,33,b5,d0,35,77,09,32,32,\
d6,75,71,f4,77,32,02,b1,8d,0d,00,ae,db,08,fb
[Strings]
editplus1_SEEI="Software\ES-Computing\EditPlus 3\Install"
setting_u.ini
文件,用以下代码将其内容全部替换
[Settings]
Custom=1
Extension=
Description=Default
File=
Function=
Tab=8
Indent=8
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
Seq=000102030405060708090A0B0C0DFF
[Settings\8]
Extension=txt
Description=Text
File=
Function=
Tab=8
Indent=8
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\0]
Extension=html;htm;asp;asa;aspx;asax;shtml;stm
Description=HTML
File=
Function=
Tab=4
Indent=4
Margin=80
Word Wrap=1
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=html.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=13873293
4=13873293
5=32768
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=3129979
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\1]
Extension=cpp;c;cxx;h;hpp;rc
Description=C/C++
File=cpp.acp
Function=^[a-z_].*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=cpp.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=32896
4=128
5=14322490
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=13873293
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\2]
Extension=pl;pm;cgi
Description=Perl
File=perl.acp
Function=^[ \t]*sub[ \t][^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=perl.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\3]
Extension=php3;php
Description=PHP
File=
Function=^[ \t]*function[ \t].*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=1
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=php.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\4]
Extension=java
Description=Java
File=java.acp
Function=^[ \t]*(public |protected |private |static).*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=java.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=32896
4=128
5=14322490
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=13873293
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\9]
Extension=jsp
Description=JSP
File=
Function=^[ \t]*(public |protected |private |static).*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=1
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=jsp.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=32896
4=128
5=14322490
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=13873293
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\5]
Extension=js
Description=JavaScript
File=java.acp
Function=^[ \t]*function[ \t].*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=js.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=32896
4=128
5=14322490
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=13873293
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\6]
Extension=vbs;vb
Description=VBScript
File=
Function=^[ \t]*(public |private )?(sub|function|property|class)[ \t].*
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=vb.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\7]
Extension=css
Description=CSS
File=
Function=
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=css.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=32896
4=128
5=32768
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\10]
Extension=xml;config;manifest;xaml;csproj;vbproj;xul;rdf
Description=XML
File=
Function=
Tab=4
Indent=4
Margin=80
Word Wrap=1
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=xml.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=13873293
1=3129979
2=8421376
3=13873293
4=128
5=32768
6=32768
7=14322490
8=32768
9=4686064
10=4686064
11=3129979
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\11]
Extension=cs
Description=C#
File=java.acp
Function=^[ \t]*(public |protected |private |static).*\([^;]*$
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=123
Indent Close=125
End of Statement=59
Syntax file=cs.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
[Settings\Custom0]
Extension=sql
Description=SQL
File=
Function=
Tab=4
Indent=4
Margin=80
Word Wrap=0
Auto Indent=1
Tab Indent=0
Common=0
Indent Open=0
Indent Close=0
End of Statement=0
Syntax file=mysql.stx
Insert Space=0
Hard break=0
Wrap at Column=0
Show Marker=1
Column Marker 1=0
Column Marker 2=0
Column Marker 3=0
Column Marker 4=0
Column Marker 5=0
Column Marker 6=0
Column Marker 7=0
Column Marker 8=0
Column Marker 9=0
Column Marker 10=0
0=16711680
1=255
2=8421376
3=32896
4=128
5=32768
6=32768
7=32768
8=32768
9=16711935
10=16711935
11=8388736
12=8388736
13=8388736
14=8388736
15=8388736
16=8388736
Disable Auto-completion=0
Trim Trailing Spaces=0
Wildcard=
Function2=
Pattern=0
Pattern2=0
保存并退出。再次打开,背景及代码颜色如下所示: