News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

codesnippets

Started by LordCB, June 03, 2009, 11:36:50 PM

Previous topic - Next topic

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??

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..."

LordCB

In the Settings of Snippet I don´t see any choice to provide my own

Pecan

Quote from: LordCB on June 04, 2009, 10:00:34 PM
In the Settings of Snippet I don´t see any choice to provide my own