eclipse为java设置语法高亮

在/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs  中添加以下内容:

semanticHighlighting.inheritedMethodInvocation.bold=true
semanticHighlighting.localVariableDeclaration.enabled=true
semanticHighlighting.interface.enabled=true
semanticHighlighting.staticMethodInvocation.italic=false
semanticHighlighting.inheritedMethodInvocation.color=64,128,128
semanticHighlighting.typeParameter.color=170,47,0
semanticHighlighting.interface.color=170,47,0
semanticHighlighting.parameterVariable.enabled=true
semanticHighlighting.inheritedMethodInvocation.italic=true
semanticHighlighting.staticMethodInvocation.color=0,0,255
semanticHighlighting.interface.bold=true
semanticHighlighting.class.bold=true
semanticHighlighting.class.color=170,47,0
semanticHighlighting.abstractMethodInvocation.bold=true
semanticHighlighting.deprecatedMember.color=255,0,128
semanticHighlighting.typeArgument.enabled=true
semanticHighlighting.abstractMethodInvocation.color=0,85,0
semanticHighlighting.staticField.color=0,0,255
semanticHighlighting.typeParameter.bold=false
semanticHighlighting.typeParameter.enabled=true
semanticHighlighting.abstractMethodInvocation.enabled=true
semanticHighlighting.localVariable.color=254,83,1
semanticHighlighting.inheritedMethodInvocation.enabled=true
semanticHighlighting.parameterVariable.color=28,173,236
semanticHighlighting.localVariable.italic=true
semanticHighlighting.staticField.italic=false
semanticHighlighting.localVariableDeclaration.italic=true
semanticHighlighting.parameterVariable.bold=true
semanticHighlighting.localVariable.enabled=true
semanticHighlighting.localVariableDeclaration.color=254,83,1
semanticHighlighting.class.enabled=true
semanticHighlighting.staticMethodInvocation.bold=true
semanticHighlighting.number.enabled=true
semanticHighlighting.field.color=162,0,162
semanticHighlighting.number.color=255,0,128
semanticHighlighting.typeArgument.color=170,47,0

效果:


展开阅读全文

没有更多推荐了,返回首页