Code::Blocks Forums

User forums => Help => Topic started by: digital on September 16, 2019, 07:34:50 pm

Title: cb_share_config can not import the syntax highlighting config
Post by: digital on September 16, 2019, 07:34:50 pm
I am using 17.12

I am trying to follow this http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes (http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes) to get a basic dark theme in Code::blocks.  When I try to select the .conf file to import the themes it shows a message box saying "TinyXML error: Error document empty." I have tried just copy/pasting the xml at the bottom of the page into the .conf and downloading this gist https://gist.github.com/yzhong52/6852140faa233408de67 (https://gist.github.com/yzhong52/6852140faa233408de67)
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: oBFusCATed on September 16, 2019, 07:54:55 pm
What are the steps you're executing? Are you sure you're exiting codeblocks before running cb_share_config?
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: digital on September 17, 2019, 06:20:53 am
I am exiting code blocks then launching "sb_share_config.exe".  I click on the "..." button next to "Source configuration file:". When i select the conf file i have saved it gives the error.
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: oBFusCATed on September 17, 2019, 07:51:41 am
Works fine for me.
I've:
1. opened the gist link.
2. Pressed the raw button
3. right click -> save page
4. start cb_share_config
5. pressed the ... and selected the saved file

Are you sure your .conf file you save is a xml file?
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: digital on September 17, 2019, 05:37:48 pm
If you look at the contents of the file it definitely xml.  I followed your steps and still doesn't work :/ I will try to reinstall Code::Blocks
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: oBFusCATed on September 17, 2019, 07:10:37 pm
This won't solve it.
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: digital on September 18, 2019, 04:15:55 am
It did solve it though.  Something must of gotten messed up in the install
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: oBFusCATed on September 18, 2019, 07:40:01 am
 :o
Title: Re: cb_share_config can not import the syntax highlighting config
Post by: BlueHazzard on September 18, 2019, 10:01:17 am
If you encounter similar problems a second time, can you please post the two xml files you are using?
Thank you!