User forums > Using Code::Blocks
How to change the selection color of XML file?
photon3108:
Thank you, jens. It works.
But I have another question. If I do that as you said, the color of "Selection" and
"Active line" of plain text will become the same setting of xml.
How can I set the color of plain text or just make the setting only work on xml format,
not plain text or others?
Jenna:
You should be able to change it in "Settings -> Editor -> Syntax highlighting -> Syntax highlighting for. -> XML".
photon3108:
Yes, it can and I did.
I change the color of "Active line" of XML and the active line of *.xml realy shows the right color.
But sometimes when I open *.txt, the plain text will use the color setting of "Active line" of XML.
And sometimes it doesn't.
If I follow those steps, I can produce this problem.
1. Start Codeblocks.
2. open abc.xml
( It shows right color of active line what I setted )
3. open abc.txt
( Problem: It uses the color setting of active line of XML, not plain text itself. )
4. Close Codeblocks.
5. Start Codeblocks again.
6. open abc.txt
( The same problem. )
Now if I open the page of "Settings -> Editor -> Syntax highlighting -> Syntax highlighting for. -> XML"
and don't do anything just press yes to close this page, the plain text use the default color of active
line, not the color of XML.
I want plain text use plain text's color and XML use XML's color. Something like each language, e.g. XML,
inherit the color from plain text if it wasn't set. Plain text doesn't inherit anyone.
How can I do that?
platform: Fedora 12 + Codeblocks release 10.05 rev 0 ( installed by yum )
Navigation
[0] Message Index
[*] Previous page
Go to full version