Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: hidefromkgb on December 15, 2018, 10:09:22 pm

Title: Custom color scheme for plain text? [solved since SVN r11530]
Post by: hidefromkgb on December 15, 2018, 10:09:22 pm
Hi again.

I`ve finally decided to make C::B my primary non-console text editor. (Bye-bye MEdit!)
The problem I currently have is that the default color scheme for text files is incompatible with my dark desktop environment.
I already have a nice custom dark scheme for C, Bash, Asm and Python, but plain text files are now a pain in the butt to edit.
The default black-on-white interacts exceptionally bad with my line highlighting color and cursor color, making the text I`m editing barely legible.
And there seems to be no «Plain text» option within Syntax Highlighting configuration tab.

How do I redefine the plain text colors?
Title: Re: Custom color scheme for plain text?
Post by: ivan braga on December 16, 2018, 02:50:41 am
I hope it's what you're looking for.

http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes ;)

or

https://medium.com/@yzhong.cs/change-editor-theme-for-code-blocks-windows-linux-mac-92e9c15cbca4
Title: Re: Custom color scheme for plain text?
Post by: hidefromkgb on December 16, 2018, 02:52:09 am
It`s not.

These only work for code, and plain text isn`t treated as code in C::B.
Title: Re: Custom color scheme for plain text?
Post by: ivan braga on December 16, 2018, 03:14:18 am
Would it be this?

If it is not post an image, so I can understand.


(https://i.imgur.com/mAZTQIb.png)
Title: Re: Custom color scheme for plain text?
Post by: hidefromkgb on December 16, 2018, 04:10:14 am
Should be self-explanatory:

(https://i.imgur.com/6EhrEj9.png)
(https://i.imgur.com/ZRizjyz.png)
Title: Re: Custom color scheme for plain text?
Post by: ivan braga on December 16, 2018, 04:35:15 am
Ok, now I understand, but I can not help, I hope someone can.
Title: Re: Custom color scheme for plain text?
Post by: ivan braga on December 16, 2018, 04:44:23 am
After evaluating more, I think if you look at the code at:

http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes#Volcanic (http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes#Volcanic)

You should come to a conclusion as to how it is done, do not you think?

Look at the context of how it's done!
Title: Re: Custom color scheme for plain text?
Post by: oBFusCATed on December 16, 2018, 08:19:40 am
How do I redefine the plain text colors?
Install a night build. There we've added a plain text highlight support.  8) It is annoying I agree.
Title: Re: Custom color scheme for plain text?
Post by: hidefromkgb on December 16, 2018, 05:39:22 pm
PKGBUILD compiled successfully.

Thanks a ton, dev team, now it`s working! And also the tab headers and toolbars now look a great deal better.