codeblocks-ubuntu-change theme
来源:互联网 发布:淘宝上怎么卖东西 编辑:程序博客网 时间:2024/06/05 06:13
参考:
http://blog.csdn.net/gzshun/article/details/8294305
http://www.cnblogs.com/platero/p/3518850.html
1. 导入主题到配置文件sudo gedit ~/.codeblocks/default.conf
2. find “colour_sets”,在<default></default>后添加你所需的主题。
例如添加下面的主题vim
<vim> <NAME> <str> <![CDATA[vim]]> </str> </NAME> <cc> <style0> <FORE> <colour r="170" g="170" b="170" /> </FORE> <BACK> <colour r="0" g="0" b="0" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style0> <style1> <FORE> <colour r="170" g="170" b="170" /> </FORE> <BACK> <colour r="0" g="0" b="0" /> </BACK> <NAME> <str> <![CDATA[Default]]> </str> </NAME> </style1> <style5> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style5> <style6> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style6> <style7> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style7> <style8> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment (normal)]]> </str> </NAME> </style8> <style9> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment line (normal)]]> </str> </NAME> </style9> <style10> <FORE> <colour r="85" g="255" b="255" /> </FORE> <NAME> <str> <![CDATA[Comment line (normal)]]> </str> </NAME> </style10> <style11> <FORE> <colour r="85" g="255" b="255" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style11> <style12> <FORE> <colour r="85" g="255" b="255" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment (documentation)]]> </str> </NAME> </style12> <style13> <FORE> <colour r="85" g="255" b="255" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style13> <style14> <FORE> <colour r="85" g="255" b="255" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Comment line (documentation)]]> </str> </NAME> </style14> <style19> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[Number]]> </str> </NAME> </style19> <style20> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[Number (inactive)]]> </str> </NAME> </style20> <style21> <FORE> <colour r="0" g="255" b="0" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[Keyword]]> </str> </NAME> </style21> <style23> <FORE> <colour r="225" g="160" b="0" /> </FORE> <BOLD bool="0" /> <NAME> <str> <![CDATA[User keyword]]> </str> </NAME> </style23> <style24> <FORE> <colour r="160" g="160" b="160" /> </FORE> <NAME> <str> <![CDATA[User keyword (inactive)]]> </str> </NAME> </style24> <style27> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style27> <style28> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[String]]> </str> </NAME> </style28> <style29> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[String (inactive)]]> </str> </NAME> </style29> <style30> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[String (inactive)]]> </str> </NAME> </style30> <style31> <FORE> <colour r="255" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[Character]]> </str> </NAME> </style31> <style34> <FORE> <colour r="85" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[Preprocessor]]> </str> </NAME> </style34> <style35> <FORE> <colour r="85" g="85" b="255" /> </FORE> <NAME> <str> <![CDATA[Preprocessor (inactive)]]> </str> </NAME> </style35> <style36> <FORE> <colour r="160" g="160" b="160" /> </FORE> <NAME> <str> <![CDATA[Operator]]> </str> </NAME> </style36> <style37> <FORE> <colour r="170" g="170" b="170" /> </FORE> <NAME> <str> <![CDATA[Operator (inactive)]]> </str> </NAME> </style37> <style38> <FORE> <colour r="0" g="0" b="0" /> </FORE> <BACK> <colour r="170" g="170" b="170" /> </BACK> <NAME> <str> <![CDATA[Selection]]> </str> </NAME> </style38> <style40> <FORE> <colour r="255" g="0" b="0" /> </FORE> <BACK> <colour r="0" g="0" b="0" /> </BACK> <ITALICS bool="1" /> <NAME> <str> <![CDATA[Matching brace highlight]]> </str> </NAME> </style40> <editor> <keywords> <SET4> <str> <![CDATA[__cplusplus __GNUC__ __GNUG__]]> </str> </SET4> </keywords> </editor> <NAME> <str> <![CDATA[C/C++]]> </str> </NAME> </cc> </vim>插入到<default></default>后面即可,如果想直接将默认theme替换为目标<vim>主题,不妨把<default></default>之间的内容替换未<vim></vim>之间的配置信息。
3. 待配置文件设置好后,启动codeblocks来设置所需的主题。
settings->editor->syntax highlighting->colour theme来选择,如果按上面设置应该会出现default和vim的选项,选择所需即可。
4. 调整到黑色背景后,需要把光标颜色也改一下。
Setting-->Editor-->margins and caret-->caret color
0 0
- codeblocks-ubuntu-change theme
- Change my blog theme
- Change the magento theme:
- Ubuntu Codeblocks
- CodeBlocks Color Theme 主题修改
- ubuntu下安装codeblocks
- ubuntu codeblocks环境搭建
- Ubuntu + CodeBlocks + wxWidgets
- ubuntu下安装codeblocks
- ubuntu安装codeblocks
- ubuntu 安装codeblocks Eclipse
- ubuntu codeblocks 12.11 安装
- ubuntu codeblocks 12.11 安装
- Ubuntu 10.04 安装 codeblocks
- ubuntu codeblocks 13.12 安装
- CodeBlocks.Ubuntu.无法输入
- ubuntu下安装codeblocks
- ubuntu 下配置codeblocks
- 简单的页面浮动窗口的制作
- 关于产品和创新、创业的思考
- Delphi 载入Gif图片
- Cent Os 6.6下静默安装Oracle11g经验总结
- 关于火车票12306网站出现“此网站的安全证书存在问题”解决办法
- codeblocks-ubuntu-change theme
- 提高Flash builder编译速度 (转)
- 有经验的程序员:请不要把这些告诉初学者
- 有韵味的女人,是成熟的女人。
- 关于在SSH2整合时,如何使用单元测试
- oracle 用plsql删除数据库表列的comments
- 悲催的程序员悖论
- boost::thread编程-线程中断
- 程序员OR非程序员,有些编程的事需要知道