笔记篇-在Windows中Code::Blocks的安装和主题配置

本章将会介绍C++编辑器CodeBlocks的安装与基本配置,Ready?Go!!!(*^▽^*)

1.下载Code::Blocks

来到Code::Blocks官网,选择Downloads。

 选择二进制版本。

 进去之后往下翻,网站会自动匹配你的系统。选择codeblocks-20.03mingw-setup.exe,选择其中的Sourceforge.net,点进去这个网站。

 进去之后会自动下载,之后运行exe文件一路next就行。

2.Code::Blocks的主题设置

进入CB后,我们发现CB只有default一个主题,于是我们可以去添加更多主题。

现在关闭CB,来到文件资源管理器。默认在C盘,进入到“用户“文件夹。

 进入到“Administrator”文件夹。接下来我们要找到“AppData”文件夹。

 可点进去之后没有?这是因为系统隐藏了AppData,点击“查看”--->“选项”--->“查看”,把这两个选项取消掉。

 点击“确定”我们就可以看到AppData文件夹了。

我们点进去,选择“Roaming”--->“CodeBlocks”,点进去之后,找到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>
                     <c
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值