Author Topic: cb_share_config can not import the syntax highlighting config  (Read 3606 times)

Offline digital

  • Single posting newcomer
  • *
  • Posts: 4
cb_share_config can not import the syntax highlighting config
« 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 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cb_share_config can not import the syntax highlighting config
« Reply #1 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline digital

  • Single posting newcomer
  • *
  • Posts: 4
Re: cb_share_config can not import the syntax highlighting config
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cb_share_config can not import the syntax highlighting config
« Reply #3 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline digital

  • Single posting newcomer
  • *
  • Posts: 4
Re: cb_share_config can not import the syntax highlighting config
« Reply #4 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cb_share_config can not import the syntax highlighting config
« Reply #5 on: September 17, 2019, 07:10:37 pm »
This won't solve it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline digital

  • Single posting newcomer
  • *
  • Posts: 4
Re: cb_share_config can not import the syntax highlighting config
« Reply #6 on: September 18, 2019, 04:15:55 am »
It did solve it though.  Something must of gotten messed up in the install

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cb_share_config can not import the syntax highlighting config
« Reply #7 on: September 18, 2019, 07:40:01 am »
 :o
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: cb_share_config can not import the syntax highlighting config
« Reply #8 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!