User forums > Nightly builds

The 03 january 2007 build is out.

<< < (2/4) > >>

cstudent:
Ubuntu 6.10 (Edgy) build here.

killerbot:

--- Quote from: Jan van den Borst on January 03, 2007, 10:21:00 pm ---Hi All
I have a question regarding the Code snippets plugin.
I want to make a snippet inserting a file header:
<----snippet code----->
//******************************************************************************
//* Copyright (c) 2007
//******************************************************************************
//*
//* FILE:              [[ print(GetEditorManager().GetActiveEditor().GetShortName()); ]]
//*
//* AUTHOR:        Jan van den Borst
//*
//* DESCRIPTION:
//*
//* FILE ID: $$Id:$
//*
//******************************************************************************
<----snippet code----->

This snippet works well, but the hard spaces in the code are not saved in the xml file. If I modify this file by hand and put &#x20; the hard spaces are preserved but editing the snippet by the gui makes the hard spaces disappear again.
Any ideas hoe to solve this?


--- End quote ---

maybe because of tinyxml ?? use CDATA ??

artoj:

--- Quote from: Jan van den Borst on January 03, 2007, 10:21:00 pm ---This snippet works well, but the hard spaces in the code are not saved in the xml file. If I modify this file by hand and put &#x20; the hard spaces are preserved but editing the snippet by the gui makes the hard spaces disappear again.

--- End quote ---

Hopefully fixed in next nightly; the fix is: http://www.grinninglizard.com/tinyxmldocs/classTiXmlBase.html#e0

killerbot:
TiXmlPrinter is also very handy !

mandrav:

--- Quote from: artoj on January 03, 2007, 10:45:34 pm ---
--- Quote from: Jan van den Borst on January 03, 2007, 10:21:00 pm ---This snippet works well, but the hard spaces in the code are not saved in the xml file. If I modify this file by hand and put the hard spaces are preserved but editing the snippet by the gui makes the hard spaces disappear again.

--- End quote ---

Hopefully fixed in next nightly; the fix is: http://www.grinninglizard.com/tinyxmldocs/classTiXmlBase.html#e0

--- End quote ---

arto, you really should use CDATA for the snippets. The reason is simple: one special character in the snippet and the whole snippets xml file will become unreadable.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version