Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » & symbol not working in plugin.xml(I have tried all the escape characters required to use & symbol like & and & but nothing is working. Also, other symbols' escape characters are working like < " etc.)
& symbol not working in plugin.xml [message #1835285] Mon, 30 November 2020 07:09 Go to next message
Shubham Shrivastava is currently offline Shubham ShrivastavaFriend
Messages: 2
Registered: November 2020
Junior Member
I want to include & symbol in a context menu text but it is not working. I have tried every escape characters mentioned to use & symbols like & & but none worked for me.
For the trial purpose i used other escaped characters like < and " so all these are working so there is no issues with my setup.

Please guide me to solve this issue.
Thanks in advance!
Re: & symbol not working in plugin.xml [message #1835289 is a reply to message #1835285] Mon, 30 November 2020 08:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31702
Registered: July 2009
Senior Member
I see working examples that that look like this:
       <command
             commandId="a.b.c"
             icon="icons/foo.png"
             id="a.b.c.D"
             label="Automatic Something &amp; Something Else"
             style="toggle">
       </command>
So I think &amp; should just work.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: & symbol not working in plugin.xml [message #1835290 is a reply to message #1835289] Mon, 30 November 2020 08:13 Go to previous messageGo to next message
Shubham Shrivastava is currently offline Shubham ShrivastavaFriend
Messages: 2
Registered: November 2020
Junior Member
I am using it in name attribute of wizard tag and there only & is not working

          <wizard
                  ...
                  name="Menu item where &amp and &#38 symbol not working" ...
                  ...>
         </wizard>

i have removed ; from last so that it will not be rendered to & symbol in the comment

[Updated on: Mon, 30 November 2020 08:28]

Report message to a moderator

Re: & symbol not working in plugin.xml [message #1835292 is a reply to message #1835290] Mon, 30 November 2020 09:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31702
Registered: July 2009
Senior Member
I wonder, isn't & used to mark mnemonic characters?

https://stackoverflow.com/questions/3364252/display-a-in-a-menuitem-or-menustrip


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:C++ Exit Code -1
Next Topic:Define a limited string consisting out of figures only
Goto Forum:
  


Current Time: Tue Jan 19 22:25:58 GMT 2021

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

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

Back to the top