keil中更改代码字体,颜色等
扫描二维码
随时随地手机看文章
修改后的配置文件在该路径下:C:Program Files (x86)Keil_v5UV4global.prop
若修改后系统默认字体找不到Courier New,则可以通过修改配置文件让其重新显示出来
operator,block,brackets:括号,逗号,分号等
Identifier:英文代码正文
方案一:
font.monospace.cpp=CourierNewstyle.cpp.32=font:CourierNew,size:11,fore:#000000,back:#CCE8CFstyle.cpp.4=font:CourierNew,size:11,fore:#FF00FF,back:#CCE8CFstyle.cpp.10=font:CourierNew,size:11,fore:#000000,back:#CCE8CFstyle.cpp.1=font:CourierNew,size:11,fore:#008000,back:#CCE8CFstyle.cpp.2=font:CourierNew,size:11,fore:#007F00,back:#CCE8CFstyle.cpp.5=font:CourierNew,size:11,fore:#0080FF,back:#CCE8CFstyle.cpp.6=font:CourierNew,size:11,fore:#7F007F,back:#CCE8CFstyle.cpp.11=font:CourierNew,size:11,fore:#000000,back:#CCE8CFstyle.cpp.9=font:CourierNew,size:11,fore:#0000A0,back:#CCE8CFstyle.cpp.7=font:CourierNew,size:11,fore:#0000A0,back:#CCE8CFstyle.cpp.34=font:CourierNew,size:11,fore:#500000,back:#20FFFFstyle.cpp.35=font:CourierNew,size:11,fore:#FF0000,back:#CCE8CFstyle.cpp.16=font:CourierNew,size:11,fore:#B00040,back:#CCE8CFstyle.cpp.12=font:CourierNew,size:11,fore:#000000,back:#E0C0E0
方案一效果
方案二:
font.monospace.cpp=CourierNewstyle.cpp.32=font:CourierNew,size:11,fore:#000000,back:#B3BF87style.cpp.4=font:CourierNew,size:11,fore:#FF00FF,back:#B3BF87style.cpp.10=font:CourierNew,size:11,fore:#000000,back:#B3BF87style.cpp.1=font:CourierNew,size:11,fore:#008000,back:#B3BF87style.cpp.2=font:CourierNew,size:11,fore:#007F00,back:#B3BF87style.cpp.5=font:CourierNew,size:11,fore:#0000FF,back:#B3BF87style.cpp.6=font:CourierNew,size:11,fore:#7F007F,back:#B3BF87style.cpp.11=font:CourierNew,size:11,fore:#000000,back:#B3BF87style.cpp.9=font:CourierNew,size:11,fore:#C51F1F,back:#B3BF87style.cpp.7=font:CourierNew,size:11,fore:#8000FF,back:#B3BF87style.cpp.34=font:CourierNew,size:11,fore:#500000,back:#20FFFFstyle.cpp.35=font:CourierNew,size:11,fore:#FF0000,back:#B3BF87style.cpp.16=font:CourierNew,size:11,fore:#B00040,back:#B3BF87style.cpp.12=font:CourierNew,size:11,fore:#000000,back:#E0C0E0
方案二效果