语法作色文件
- global.prop
# properties for all file types
indent.automatic=1
virtual.space=0
view.whitespace=0
view.endofline=0
code.page=65001
caretline.visible=1
highlight.matchingbraces=1
print.syntax.coloring=1
use.tab.color=1
create.backup.files=0
auto.load.ext.modfiles=1
save.prj.before.dbg=1
save.files.before.dbg=1
function.scanner.project=1
function.scanner.files=1
function.scanner.modules=1
# properties for c/cpp files
syntax.colouring.cpp=1
use.tab.cpp=1
tabsize.cpp=4
line.margin.visible.cpp=1
fold.cpp=1
monospaced.font.cpp=1
# properties for asm files
syntax.colouring.asm=1
use.tab.asm=1
tabsize.asm=4
line.margin.visible.asm=1
monospaced.font.asm=1
# properties for other files
use.tabs=1
tabsize=4
line.margin.visible.txt=1
monospaced.font.txt=1
# setting for code completion and syntax check
cc.autolist=1
cc.highlightsyntax=1
cc.showparameters=1
cc.triggerlist=1
cc.triggernumchars=3
cc.enter.as.fillup=0
# autosave for editor files
autosave=1
autosave.interval=3
# vertical edge at right margin
edge.mode=1
edge.column=80
# Specification for text selection and caret line
selection.fore=#000000
selection.back=#00FFFF
caret.fore=#FFFFFF
caret.back=#000000
# Color for vertical edge
edge.colour=#66FAFA
# C/C++ Editor files
template.cpp="#define","#define |";"#if","#if |\r\n\r\n#endif";\\
"#include","#include ";"Header","// Header:\r\n// File Name: |\r\n// Author:\r\n// Date:\r\n";\\
"continue","continue;";"do","do\r\n{\r\n\t// TODO: enter the block content here\r\n\t\r\n\t|\r\n} while ();\r\n";\\
"enum","enum |\r\n{\r\n\t\r\n};\r\n";"for","for(|;;)\r\n{\r\n}";\\
"fpointer_type","typedef int (* |F)();\r\n";"function","void function(|)\r\n{\r\n\r\n}\r\n";\\
"if","if (|)";"ifelse","if (|)\r\n{\r\n}\r\nelse\r\n{\r\n}";\\
"struct","struct | \r\n{\r\n\r\n};\r\n";"switch","switch (|)\r\n{\r\n\tcase:\r\n\t\tbreak;\r\n\tcase:\r\n\t\tbreak;\r\n\tdefault:\r\n\t\tbreak;\r\n}";\\
"void","void | ();\r\n";"while","while (|)\r\n{\r\n}";\\
font.monospace.cpp=Consolas
font.acpmonofontname.cpp=Consolas
font.acppropfontname.cpp=Consolas
style.cpp.32=font:Consolas,size:12,fore:#FF972F,back:#152B2B
style.cpp.4=font:Consolas,size:12,fore:#0080FF,back:#152B2B
style.cpp.10=font:Consolas,size:12,fore:#FF8040,back:#152B2B
style.cpp.1=font:Consolas,size:12,fore:#AAFFFF,back:#152B2B
style.cpp.2=font:Consolas,size:12,fore:#AAFFFF,back:#152B2B
style.cpp.5=font:Consolas,size:12,fore:#C6C600,back:#152B2B,bold,italics
style.cpp.6=font:Consolas,size:12,fore:#FF80FF,back:#152B2B
style.cpp.11=font:Consolas,size:12,fore:#FF8040,back:#152B2B
style.cpp.9=font:Consolas,size:12,fore:#FF0000,back:#152B2B
style.cpp.7=font:Consolas,size:12,fore:#FF80FF,back:#152B2B
style.cpp.34=font:Consolas,size:12,fore:#16F348,back:#152B2B
style.cpp.35=font:Consolas,size:12,fore:#FF0000,back:#152B2B
style.cpp.16=font:Consolas,size:12,fore:#008000,back:#152B2B
style.cpp.12=font:Consolas,size:12,fore:#FF0000,back:#152B2B
# Asm Editor files
font.monospace.asm=Consolas
style.asm.32=font:Courier New,size:11,fore:#C6C600,back:#152B2B
style.asm.1=font:Courier New,size:11,fore:#AAFFFF,back:#152B2B
style.asm.2=font:Courier New,size:11,fore:#0080FF,back:#152B2B
style.asm.3=font:Courier New,size:11,fore:#7F007F,back:#152B2B
style.asm.4=font:Courier New,size:11,fore:#00FF80,back:#152B2B
style.asm.5=font:Courier New,size:11,fore:#DD8041,back:#152B2B
style.asm.6=font:Courier New,size:11,fore:#FF80FF,back:#152B2B
style.asm.7=font:Courier New,size:11,fore:#FF80FF,back:#152B2B
style.asm.9=font:Courier New,size:11,fore:#C6C600,back:#152B2B,bold,italics
style.asm.10=font:Courier New,size:11,fore:#FF8040,back:#152B2B
style.asm.11=font:Courier New,size:11,fore:#7EFFFF,back:#152B2B
style.asm.12=font:Courier New,size:11,fore:#F50AC7,back:#152B2B
style.asm.8=font:Courier New,size:11,fore:#46AA03,back:#152B2B
# Editor Text files
font.monospace.txt=Courier New
style.txt.32=font:Verdana,size:12,fore:#AAFFFF,back:#152B2B,italics
- arm.prop
# C/C++ Editor files
# User keywords
keywords6.$(file.patterns.cpp)=
# Asm Editor files
# User keywords
keywords6.$(file.patterns.asm)=
# Editor Text files
# User keywords
keywords6.$(file.patterns.txt)=
- 51.prop
# C/C++ Editor files
# User keywords
keywords6.$(file.patterns.cpp)=_at_ alien interrupt _priority_ reentrant _task_ using noaregs noregparms optimize \
size objectadvanced auto register static extern bit char enum int \
float double sbit sfr sfr16 code data idata bdata xdata \
pdata far small compact large ASM DEFINE2 ENDASM INCDIR1 NOEXTEND1 \
CODE1 COND1 EJECT LISTINCLUDE NOCOND1 NOPRINT1 PAGELENGTH1 \ AREGS BROWSE1 \
COMPACT1 DEBUG1 DISABLE FARWARNING FIXXC800 FLOATFUZZY INTERVAL1 INTPROMOTE1 INTVECTOR1 LARGE1 \
MAXARGS1 MOD517 MODA2 MODAB2 MODDA MODDP2 MODP2 NOAMAKE1 NOAREGS NOINTPROMOTE1 \
NOINTVECTOR1 NOMOD517 NOMODA2 NOMODAB2 NOMODDA NOMODDP2 MODP2 NOOBJECT1 NOREGPARMS OBJECT1 \
OBJECTADVANCED1 OBJECTEXTEND1 OMF21 ONEREGBANK OPTIMIZE ORDER1 PSOC1 REGPARMS RESTORE RET_PSTK1 \
RET_XSTK1 ROM1 SAVE SMALL1 SRC1 STRING1 USERCLASS1 VARBANKING1 XCROM1 __c51__ \
__cx51__ __date__ __date2__ __file__ __line__ __model__ __time__ __stdc__
# Asm Editor files
# User keywords
keywords6.$(file.patterns.asm)=
# Editor Text files
# User keywords
keywords6.$(file.patterns.txt)=
如何使用
新建对应文件(文件后缀名为prop),将对应文件内容复制粘贴到文件,然后拷贝到Keil软件安装目录,例如:C:\Program Files (x86)\Keil_v5\UV4,之后重启Keil