修改后的配置文件在該路徑下:C:Program Files (x86)Keil_v5UV4global.prop
若修改后系統(tǒng)默認(rèn)字體找不到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
方案二效果