分享自用code blocks颜色主题方案

阅读: 评论:0

分享自用code blocks颜色主题方案

分享自用code blocks颜色主题方案

 

 

这个是我仿照deepin里面vim的颜色,在官网的vim上改的。

整体背景是棕褐色;string用的灰白色,意思是“黑底白字”;keyword和default是浅绿色和浅棕色,我最满意的搭配。

//注释蓝绿色,比较醒目。/**/注释比较暗的蓝绿色,一般用于不那么重要的注释,所以不醒目。数字是醒目的亮紫色。

其实有需要可以自己改,建议设置两套用于白天或晚上,改一下颜色亮度和饱和度就行,光环境不同感受差别太大了。

主题名为 vim_in_debian,毕竟deepin基于debian

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1"><editor><colour_sets><ACTIVE_COLOUR_SET><str><![CDATA[vim_in_debian]]></str></ACTIVE_COLOUR_SET><ACTIVE_LANG><str><![CDATA[C/C++]]></str></ACTIVE_LANG><default /><vim_in_debian><NAME><str><![CDATA[vim_in_debian]]></str></NAME><cc><style0><FORE><colour r="232" g="159" b="101" /></FORE><BACK><colour r="31" g="19" b="5" /></BACK><NAME><str><![CDATA[Default]]></str></NAME></style0><style1><FORE><colour r="232" g="159" b="101" /></FORE><BACK><colour r="31" g="19" b="5" /></BACK><NAME><str><![CDATA[Default]]></str></NAME></style1><style2><FORE><colour r="230" g="155" b="95" /></FORE><NAME><str><![CDATA[Default (inactive)]]></str></NAME></style2><style3><FORE><colour r="230" g="155" b="95" /></FORE><NAME><str><![CDATA[Default (inactive)]]></str></NAME></style3><style4><FORE><colour r="230" g="155" b="95" /></FORE><NAME><str><![CDATA[Default (inactive)]]></str></NAME></style4><style5><FORE><colour r="82" g="179" b="179" /></FORE><NAME><str><![CDATA[Comment (normal)]]></str></NAME></style5><style6><FORE><colour r="82" g="179" b="179" /></FORE><NAME><str><![CDATA[Comment (normal)]]></str></NAME></style6><style7><FORE><colour r="82" g="179" b="179" /></FORE><NAME><str><![CDATA[Comment (normal)]]></str></NAME></style7><style8><FORE><colour r="82" g="179" b="179" /></FORE><NAME><str><![CDATA[Comment (normal)]]></str></NAME></style8><style9><FORE><colour r="0" g="255" b="255" /></FORE><NAME><str><![CDATA[Comment line (normal)]]></str></NAME></style9><style10><FORE><colour r="0" g="255" b="255" /></FORE><NAME><str><![CDATA[Comment line (normal)]]></str></NAME></style10><style11><BOLD bool="0" /><NAME><str><![CDATA[Comment (documentation)]]></str></NAME></style11><style12><BOLD bool="0" /><NAME><str><![CDATA[Comment (documentation)]]></str></NAME></style12><style13><BOLD bool="0" /><NAME><str><![CDATA[Comment (documentation)]]></str></NAME></style13><style14><BOLD bool="0" /><NAME><str><![CDATA[Comment (documentation)]]></str></NAME></style14><style21><FORE><colour r="250" g="7" b="243" /></FORE><NAME><str><![CDATA[Number]]></str></NAME></style21><style23><FORE><colour r="60" g="220" b="150" /></FORE><BOLD bool="0" /><ITALICS bool="1" /><NAME><str><![CDATA[Keyword]]></str></NAME></style23><style24><FORE><colour r="60" g="220" b="150" /></FORE><NAME><str><![CDATA[Keyword (inactive)]]></str></NAME></style24><style25><FORE><colour r="255" g="255" b="0" /></FORE><BOLD bool="0" /><NAME><str><![CDATA[User keyword]]></str></NAME></style25><style26><FORE><colour r="255" g="255" b="0" /></FORE><BOLD bool="0" /><NAME><str><![CDATA[User keyword (inactive)]]></str></NAME></style26><style29><FORE><colour r="179" g="179" b="179" /></FORE><NAME><str><![CDATA[String]]></str></NAME></style29><style30><FORE><colour r="179" g="179" b="179" /></FORE><NAME><str><![CDATA[String]]></str></NAME></style30><style33><FORE><colour r="255" g="0" b="128" /></FORE><ITALICS bool="1" /><NAME><str><![CDATA[Character]]></str></NAME></style33><style34><FORE><colour r="255" g="0" b="128" /></FORE><ITALICS bool="1" /><NAME><str><![CDATA[Character (inactive)]]></str></NAME></style34><style36><FORE><colour r="95" g="215" b="255" /></FORE><NAME><str><![CDATA[Preprocessor]]></str></NAME></style36><style38><FORE><colour r="255" g="255" b="255" /></FORE><NAME><str><![CDATA[Operator]]></str></NAME></style38><style40><BACK><colour r="37" g="62" b="86" /></BACK><NAME><str><![CDATA[Selection]]></str></NAME></style40><style41><BACK><colour r="64" g="128" b="128" /></BACK><NAME><str><![CDATA[Active line]]></str></NAME></style41><NAME><str><![CDATA[C/C++]]></str></NAME></cc></vim_in_debian></colour_sets></editor>
</CodeBlocksConfig>

使用方法(其实懒得说了,介绍的人很多,这里简单说一下):

关闭codeblocks。

将代码复制在文本文档(最好是utf-8,免得出问题),保存后,重命名后缀为conf,名字随意取。

打开目录C:Program Files (x86)CodeBlocks下的cb_。

左边打开刚保存的conf,并如图勾选,全选也可

右边打开C:Users你的pc用户名AppDataRoamingCodeBlocks下的f

最后分别点击和即可。

由于此操作会将原有颜色主题全部替换,如果想在官方主题基础上加的话,还是直接改f吧。

注意此操作如果导致codeblocks出错,,最好提前备份文件,自行还原。

 

本文发布于:2024-01-29 18:00:25,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170652242917272.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:自用   颜色   方案   主题   blocks
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23