User forums > Using Code::Blocks

codesnippets

(1/2) > >>

LordCB:
Hello friends,

I use CB on my Usb stick. Where CB saves the codesnippets.xml. Where do I give the attention to make sure that I travel with my snippets ;o)).

LordCB:
Where can I define the location of the codesnippets.xml. CB takes always the path to appdata with a user that does not exist at home. The user is from my office. When I am at home it is writing the path to the appdata in the  codesnippets.ini file.


......?????

Pecan:
Right Click the root item in the CodeSnippets tree, then click "Settings...".

Enter the location of your snippets .xml file in "Snippet Folder".

Also:
http://wiki.codeblocks.org/index.php?title=Code_Snippets_plugin

LordCB:
Ok I have solve it. But why CB write the path to user appdata from my office in the ini file. Is it in the default.conf ???? I change the path now manually to my stick and thats it. But another question, what about synthax highligtning in the snippet editor... Is there a way to do it??

Pecan:

--- Quote from: LordCB on June 04, 2009, 10:14:26 am ---Ok I have solve it. But why CB write the path to user appdata from my office in the ini file. Is it in the default.conf ???? I change the path now manually to my stick and thats it. But another question, what about synthax highligtning in the snippet editor... Is there a way to do it??

--- End quote ---

The default "path to appdata" is provided by the OS. CodeSnippets needs a default if the user does not provide one. You should not copy the .ini file back and forth to different locations of CodeBlocks.

CodeSnippets provides only a rudimentary editor. You have the options of providing your own in the "settings..."

Navigation

[0] Message Index

[#] Next page

Go to full version