Dev C++ 更改主题

Dev C++ 是目前OIer使用最多的IDE,然而原始界面却丑的一逼。所以让我们来美化它233。

Before using

Dev C++ 的主题默认存储在C:/Users/<your name>/AppData/Roaming/Dev-Cpp目录下,在该目录新建<文件名>.syntax添加配色。

在 Dev C++ 的菜单栏中选择工具[T]>编辑器属性>语法>预设应用配色(可在选项中找到你之前新建的配色);同时也可直接在 Dev C++ 中方便的调色(点击右侧自动跳转到对应内容)并保存(如果文件名与已存在的相同则默认替换)。

修改完后,务必在工具[T]>编辑器属性>基本中更改高亮显示当前行的颜色,以符合背景。

另外,推荐在使用暗色主题时关闭 Dev C++ 自带的各种工具栏!

下面推荐两款暗色主题 qwq:

Monokai.syntax

经典的暗色配色,来自 Github

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Editor.Custom]
Assembler=$0099FFFF, clNone, 0, 0, 0
Character=$0099FFFF, clNone, 0, 0, 0
Comment=$00787878, clNone, 0, 1, 0
Float=$0099FFFF, clNone, 0, 0, 0
Hexadecimal=$0099FFFF, clNone, 0, 0, 0
Identifier=clWhite, clNone, 0, 0, 0
Illegal Char=clAqua, clNone, 0, 0, 0
Number=$00FF55AA, clNone, 0, 0, 0
Octal=$0099FFFF, clNone, 0, 0, 0
Preprocessor=$007F2AFF, clNone, 0, 0, 0
Reserved Word=$00FFD455, clNone, 0, 0, 0
Space=clWindowText, $001E1E1E, 0, 0, 0
String=$0099FFFF, clNone, 0, 0, 0
Symbol=$007F2AFF, clNone, 0, 0, 0
Selected text=16777215, 5921370
Gutter=7895160, 1973790
Break points=16777215, 13209
Error Line=1973790, 10092543
Active Breakpoints=16777215, 10040115

memset0.syntax(20180916更新)

我个人修改出来的配色,高亮显示当前行颜色:Red: 46; Green: 52; Blue: 54;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Editor.Custom]
Assembler=clPurple, $0036342E, 0, 0, 0
Character=$00A062FF, $001D1D1D, 0, 0, 0
Comment=$00C8C8C8, $001D1D1D, 0, 1, 0
Float=$00A062FF, $001D1D1D, 0, 0, 0
Hexadecimal=$0099FFFF, clNone, 0, 0, 0
Identifier=$00FAFAFA, $001D1D1D, 0, 0, 0
Illegal Char=clGray, $001D1D1D, 0, 0, 0
Number=$00A062FF, $001D1D1D, 0, 0, 0
Octal=$0099FFFF, clNone, 0, 0, 0
Preprocessor=$003CF03C, $001D1D1D, 0, 0, 0
Reserved Word=$00FF8F06, $001D1D1D, 0, 0, 0
Space=clWindowText, $001D1D1D, 0, 0, 0
String=$00FF99FF, $001D1D1D, 0, 0, 0
Symbol=$0000DDDD, $001D1D1D, 0, 0, 0
Selected text=1907997, 14604246
Gutter=16777215, 1907997
Breakpoints=16777215, 219
Error line=1973790, 124158
Active breakpoints=16777215, 11877436
Folding lines=536870911, 536870911
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×