Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse Templates: Escape < and > ?
icon5.gif  Eclipse Templates: Escape < and > ? [message #810830] Thu, 01 March 2012 15:53 Go to next message
Simon Mising name is currently offline Simon Mising nameFriend
Messages: 12
Registered: December 2011
Junior Member
Hi,
simple question:

I've created a new template.xml file for my plugin (extending org.eclipse.ui.editors.templates).

My question is:
Can I use < and > within the template?
For example:

...
<template name="Example" description="Example" id="example" context="own" enabled="true" autoinsert="false">

this is a simple test with < and >

</template>
...


This example does not work. How can I escape < and > to use them in my template?

Thanks for your help.
Re: Eclipse Templates: Escape < and > ? [message #810880 is a reply to message #810830] Thu, 01 March 2012 16:38 Go to previous messageGo to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Try:
&lt; for <
and
&gt; for >
Re: Eclipse Templates: Escape < and > ? [message #811437 is a reply to message #810880] Fri, 02 March 2012 10:45 Go to previous messageGo to next message
Simon Mising name is currently offline Simon Mising nameFriend
Messages: 12
Registered: December 2011
Junior Member
Thanks, worked!

Thread can be closed.
Re: Eclipse Templates: Escape < and > ? [message #811525 is a reply to message #811437] Fri, 02 March 2012 13:14 Go to previous message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Another option should be enclose element content between <![CDATA[ and ]]>. In this case, you don't have to replace < or >.
Previous Topic:Updating selection when removing lines from table
Next Topic:Common Navigator Framework - Where is "Filters" option?
Goto Forum:
  


Current Time: Fri Mar 29 10:35:56 GMT 2024

Powered by FUDForum. Page generated in 0.03201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top