CodeBlocks自定义主题VJudge风格

参考了VJudge的配色 字体consoles

 

修改方法:

首先先在settings->editor->Syntax highlighting->color theme上添加名为VJudge的主题。

把光标改成白色 设置方法 settings->editor->Margin and caret->Caret->color

字体在settings->editor->general settings->font设置(可能会报错建议直接修改配置文件)

或者在default.conf中 搜索<font> 并修改为

<FONT>
    			<str>
				<![CDATA[1;16;-17;0;0;0;400;0;0;0;1;0;0;2;48;consolas]]>
			</str>
</FONT>

然后关闭codeblocks,在default.conf(不出意外在C:\Users\${用户名}\AppData\Roaming\CodeBlocks\)中搜索<editor>并在下一行加入如下内容。

注意:仅设置了C/C++的样式

<colour_sets>
			<ACTIVE_COLOUR_SET>
				<str>
					<![CDATA[VJudge]]>
				</str>
			</ACTIVE_COLOUR_SET>
			<ACTIVE_LANG>
				<str>
					<![CDATA[C/C++]]>
				</str>
			</ACTIVE_LANG>
			<default>
				<NAME>
					<str>
						<![CDATA[default]]>
					</str>
				</NAME>
			</default>
			<vjudge>
				<NAME>
					<str>
						<![CDATA[VJudge]]>
					</str>
				</NAME>
				<cc>
					<style0>
						<FORE>
							<colour r="184" g="200" b="216" />
						</FORE>
						<BACK>
							<colour r="40" g="43" b="46" />
						</BACK>
						<NAME>
							<str>
								<![CDATA[Default]]>
							</str>
						</NAME>
					</style0>
					<style1>
						<FORE>
							<colour r="184" g="200" b="216" />
						</FORE>
						<BACK>
							<colour r="40" g="43" b="46" />
						</BACK>
						<NAME>
							<str>
								<![CDATA[Default]]>
							</str>
						</NAME>
					</style1>
					<style2>
						<FORE>
							<colour r="192" g="192" b="192" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Default (inactive)]]>
							</str>
						</NAME>
					</style2>
					<style3>
						<FORE>
							<colour r="192" g="192" b="192" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Default (inactive)]]>
							</str>
						</NAME>
					</style3>
					<style4>
						<FORE>
							<colour r="192" g="192" b="192" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Default (inactive)]]>
							</str>
						</NAME>
					</style4>
					<style9>
						<FORE>
							<colour r="128" g="128" b="128" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Comment line (normal)]]>
							</str>
						</NAME>
					</style9>
					<style11>
						<FORE>
							<colour r="128" g="128" b="128" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Comment (documentation)]]>
							</str>
						</NAME>
					</style11>
					<style12>
						<FORE>
							<colour r="128" g="128" b="128" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Comment (documentation)]]>
							</str>
						</NAME>
					</style12>
					<style15>
						<FORE>
							<colour r="128" g="128" b="128" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Comment line (documentation)]]>
							</str>
						</NAME>
					</style15>
					<style19>
						<FORE>
							<colour r="255" g="0" b="0" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Comment keyword error (documentation)]]>
							</str>
						</NAME>
					</style19>
					<style21>
						<FORE>
							<colour r="104" g="151" b="187" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Number]]>
							</str>
						</NAME>
					</style21>
					<style22>
						<FORE>
							<colour r="87" g="171" b="255" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Number (inactive)]]>
							</str>
						</NAME>
					</style22>
					<style23>
						<FORE>
							<colour r="214" g="143" b="86" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Keyword]]>
							</str>
						</NAME>
					</style23>
					<style24>
						<FORE>
							<colour r="255" g="143" b="89" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Keyword (inactive)]]>
							</str>
						</NAME>
					</style24>
					<style25>
						<FORE>
							<colour r="168" g="186" b="141" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[User keyword]]>
							</str>
						</NAME>
					</style25>
					<style29>
						<FORE>
							<colour r="129" g="165" b="99" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[String]]>
							</str>
						</NAME>
					</style29>
					<style30>
						<FORE>
							<colour r="129" g="165" b="99" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[String]]>
							</str>
						</NAME>
					</style30>
					<style31>
						<FORE>
							<colour r="129" g="165" b="99" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[String]]>
							</str>
						</NAME>
					</style31>
					<style32>
						<FORE>
							<colour r="0" g="128" b="64" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[String (inactive)]]>
							</str>
						</NAME>
					</style32>
					<style33>
						<FORE>
							<colour r="0" g="128" b="64" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[String (inactive)]]>
							</str>
						</NAME>
					</style33>
					<style34>
						<FORE>
							<colour r="177" g="175" b="88" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Character]]>
							</str>
						</NAME>
					</style34>
					<style35>
						<FORE>
							<colour r="0" g="128" b="0" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Character (inactive)]]>
							</str>
						</NAME>
					</style35>
					<style36>
						<FORE>
							<colour r="255" g="0" b="0" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[UUID]]>
							</str>
						</NAME>
					</style36>
					<style37>
						<FORE>
							<colour r="253" g="213" b="130" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Preprocessor]]>
							</str>
						</NAME>
					</style37>
					<style39>
						<FORE>
							<colour r="184" g="200" b="216" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Operator]]>
							</str>
						</NAME>
					</style39>
					<style40>
						<FORE>
							<colour r="201" g="210" b="220" />
						</FORE>
						<NAME>
							<str>
								<![CDATA[Operator (inactive)]]>
							</str>
						</NAME>
					</style40>
					<style43>
						<FORE>
							<colour r="138" g="138" b="138" />
						</FORE>
						<BACK>
							<colour r="255" g="255" b="255" />
						</BACK>
						<NAME>
							<str>
								<![CDATA[Selection]]>
							</str>
						</NAME>
					</style43>
					<style45>
						<FORE>
							<colour r="255" g="255" b="255" />
						</FORE>
						<BACK>
							<colour r="0" g="145" b="145" />
						</BACK>
						<NAME>
							<str>
								<![CDATA[Matching brace highlight]]>
							</str>
						</NAME>
					</style45>
					<NAME>
						<str>
							<![CDATA[C/C++]]>
						</str>
					</NAME>
				</cc>
			</vjudge>
		</colour_sets>

 

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值