分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
官方配色
codeblocks是一个功能很强大编程软件,我们在安装codeblocks后软件默认的是白底黑字界面,这种界面在长时间写代码时会对眼睛造成很大伤害,增加眼疲劳,因此我们需要一个清晰干净明了,不刺眼的编程界面。下面教我们如何配置一个养眼的编程界面。
有几种经典方案,包括vim
, desert
, sublime
, ulipad
, oblivion
, darkgray
使用方法
首先进入codeblocks
官网找到colour theme
代码,链接如下 Syntax highlighting custom colour themes
将配色方案的代码,保存为default.conf
在C盘中找到CodeBlocks/default.conf,注意default.conf文件不再你的安装文件夹下,而是在系统盘下,以win7系统为例。 C:\Users\yourusername\AppData\Roaming\CodeBlocks
目下下的default.conf
然后用我们从官网上弄来的配色方案替换default.conf
注意
原来的配色文件一定要备份好,要不弄崩了,就只能重装CB了。
打开CodeBlocks建立新的c/c++文件就会发现背景变化,同时也可以在编辑环境设置中看到我们配色文件中的其他配色方案。
如果想要改变其他风格可以在Settings>Editor>Syntax Highlighting
在colour theme
中选择你想要的风格,你也可以自定义各种颜色。
default.conf
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><CodeBlocksConfig version="1"> <editor> <colour_sets> <ACTIVE_COLOUR_SET> <str> <![CDATA[modnokai night shift v2]]> </str> </ACTIVE_COLOUR_SET> <ACTIVE_LANG> <str> <![CDATA[C/C++]]> </str> </ACTIVE_LANG> <bright_yellow> <NAME> <str> <![CDATA[bright yellow]]> </str> </NAME> <cc> <style0> <BACK> <colour r="255" g="255" b="208" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <BACK> <colour r="255" g="255" b="208" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <style5> <FORE> <colour r="158" g="158" b="158" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style5> <style6> <FORE> <colour r="158" g="158" b="158" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style6> <style7> <FORE> <colour r="158" g="158" b="158" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style7> <style8> <FORE> <colour r="158" g="158" b="158" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style8> <style9> <FORE> <colour r="128" g="128" b="128" /> </FORE> <NAME> <str> <![CDATA[Comment line (normal)]]> </str> </NAME> </style9> <style10> <FORE> <colour r="128" g="128" b="128" /> </FORE> <NAME> <str> <![CDATA[Comment line (normal)]]> </str> </NAME> </style10> <style11> <FORE> <colour r="128" g="128" b="218" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style11> <style12> <FORE> <colour r="128" g="128" b="218" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style12> <style13> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style13> <style14> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style14> <style21> <BOLD bool="0" /> <NAME> <str> <![CDATA[Keyword]]> </str> </NAME> </style21> <style23> <BOLD bool="0" /> <NAME> <str> <![CDATA[User keyword]]> </str> </NAME> </style23> <style39> <BACK> <colour r="0" g="255" b="0" /> </BACK> <NAME> <str> <![CDATA[Active line]]> </str> </NAME> </style39> <NAME> <str> <![CDATA[C/C++]]> </str> </NAME> <editor> <keywords /> </editor> </cc> </bright_yellow> <dark_gray> <NAME> <str> <![CDATA[dark gray]]> </str> </NAME> <cc> <style0> <FORE> <colour r="255" g="255" b="255" /> </FORE> <BACK> <colour r="42" g="56" b="54" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <FORE> <colour r="255" g="255" b="255" /> </FORE> <BACK> <colour r="42" g="56" b="54" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <style13> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style13> <style14> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style14> <style19> <FORE> <colour r="255" g="142" b="255" /> </FORE> <NAME> <str> <![CDATA[Number]]> </str> </NAME> </style19> <style21> <FORE> <colour r="140" g="196" b="255" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Keyword]]> </str> </NAME> </style21> <style23> <FORE> <colour r="255" g="230" b="80" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[User keyword]]> </str> </NAME> </style23> <style27> <FORE> <colour r="255" g="128" b="0" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style27> <style28> <FORE> <colour r="255" g="128" b="0" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style28> <style34> <FORE> <colour r="115" g="210" b="22" /> </FORE> <NAME> <str> <![CDATA[Preprocessor]]> </str> </NAME> </style34> <style36> <FORE> <colour r="255" g="0" b="128" /> </FORE> <NAME> <str> <![CDATA[Operator]]> </str> </NAME> </style36> <style38> <BACK> <colour r="128" g="128" b="128" /> </BACK> <NAME> <str> <![CDATA[Selection]]> </str> </NAME> </style38> <style39> <BACK> <colour r="64" g="128" b="128" /> </BACK> <NAME> <str> <![CDATA[Active line]]> </str> </NAME> </style39> <NAME> <str> <![CDATA[C/C++]]> </str> </NAME> <editor> <keywords /> </editor> </cc> </dark_gray> <idel> <NAME> <str> <![CDATA[idel]]> </str> </NAME> <cc> <style0> <BACK> <colour r="245" g="245" b="245" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <BACK> <colour r="245" g="245" b="245" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <style5> <FORE> <colour r="135" g="135" b="135" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style5> <style6> <FORE> <colour r="135" g="135" b="135" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style6> <style7> <FORE> <colour r="135" g="135" b="135" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style7> <style8> <FORE> <colour r="135" g="135" b="135" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style8> <style9> <FORE> <colour r="135" g="135" b="135" /> </FORE> <NAME> <str> <![CDATA[Comment line (normal)]]> </str> </NAME> </style9> <style10> <FORE> <colour r="135" g="135" b="135" /> </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> <style21> <FORE> <colour r="255" g="128" b="64" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Keyword]]> </str> </NAME> </style21> <style23> <FORE> <colour r="156" g="37" b="166" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[User keyword]]> </str> </NAME> </style23> <style27> <FORE> <colour r="0" g="155" b="45" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style27> <style28> <FORE> <colour r="0" g="155" b="45" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style28> <style34> <FORE> <colour r="0" g="128" b="255" /> </FORE> <NAME> <str> <![CDATA[Preprocessor]]> </str> </NAME> </style34> <style39> <BACK> <colour r="0" g="255" b="0" /> </BACK> <NAME> <str> <![CDATA[Active line]]> </str> </NAME> </style39> <NAME> <str> <![CDATA[C/C++]]> </str> </NAME> <editor> <keywords /> </editor> </cc> </idel> <oblivion> <NAME> <str> <![CDATA[oblivion]]> </str> </NAME> <cc> <style0> <FORE> <colour r="238" g="238" b="236" /> </FORE> <BACK> <colour r="46" g="52" b="54" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <FORE> <colour r="238" g="238" b="236" /> </FORE> <BACK> <colour r="46" g="52" b="54" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <style5> <FORE> <colour r="136" g="138" b="133" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style5> <style6> <FORE> <colour r="136" g="138" b="133" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style6> <style7> <FORE> <colour r="136" g="138" b="133" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style7> <style8> <FORE> <colour r="136" g="138" b="133" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style8> <style11> <FORE> <colour r="52" g="101" b="164" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style11> <style12> <FORE> <colour r="52" g="101" b="164" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style12> <style17> <FORE> <colour r="164" g="0" b="0" /> </FORE> <NAME> <str> <![CDATA[Comment keyword error (documentation)]]> </str> </NAME> </style17> <style18> <FORE> <colour r="164" g="0" b="0" /> </FORE> <NAME> <str> <![CDATA[Comment keyword error (documentation)]]> </str> </NAME> </style18> <style19> <FORE> <colour r="173" g="127" b="168" /> </FORE> <BACK> <colour r="46" g="52" b="54" /> </BACK> <BOLD bool="1" /> <NAME> <str> <![CDATA[Number]]> </str> </NAME> </style19> <style21> <FORE> <colour r="233" g="185" b="110" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Keyword]]> </str> </NAME> </style21> <style23> <FORE> <colour r="78" g="154" b="6" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[User keyword]]> </str> </NAME> </style23> <style27> <FORE> <colour r="185" g="49" b="0" /> </FORE> <BACK> <colour r="30" g="3" b="0" /> </BACK> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style27> <style28> <FORE> <colour r="185" g="49" b="0" /> </FORE> <BACK> <colour r="30" g="3" b="0" /> </BACK> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style28> <style31> <FORE> <colour r="245" g="121" b="0" /> </FORE> <NAME> <str> <![CDATA[Character]]> </str> </NAME> </style31> <style33> <FORE> <colour r="211" g="215" b="207" /> </FORE> <NAME> <str> <![CDATA[UUID]]> </str> </NAME> </style33> <style34> <FORE> <colour r="78" g="154" b="6" /> </FORE> <NAME> <str> <![CDATA[Preprocessor]]> </str> </NAME> </style34> <style36> <FORE> <colour r="233" g="185" b="110" /> </FORE> <NAME> <str> <![CDATA[Operator]]> </str> </NAME> </style36> <style38> <BACK> <colour r="23" g="32" b="24" /> </BACK> <NAME> <str> <![CDATA[Selection]]> </str> </NAME> </style38> <style39> <BACK> <colour r="24" g="33" b="33" /> </BACK> <NAME> <str> <![CDATA[Active line]]> </str> </NAME> </style39> <style40> <BACK> <colour r="114" g="159" b="207" /> </BACK> <BOLD bool="0" /> <NAME> <str> <![CDATA[Matching brace highlight]]> </str> </NAME> </style40> <style41> <FORE> <colour r="238" g="238" b="236" /> </FORE> <BACK> <colour r="164" g="0" b="0" /> </BACK> <BOLD bool="0" /> <NAME> <str> <![CDATA[No matching brace highlight]]> </str> </NAME> </style41> <NAME> <str> <![CDATA[C/C++]]> </str> </NAME> <editor> <keywords /> </editor> </cc> </oblivion> <son_of_obsidian> <NAME> <str> <![CDATA[son of obsidian]]> </str> </NAME> <cc> <style0> <FORE> <colour r="241" g="242" b="243" /> </FORE> <BACK> <colour r="34" g="40" b="42" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <FORE> <colour r="241" g="242" b="243" /> </FORE> <BACK> <colour r="34" g="40" b="42" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <
给我老师的人工智能教程打call!http://blog.youkuaiyun.com/jiangjunshow