Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » Make .xml files to highlight the code
Make .xml files to highlight the code [message #1004861] Thu, 24 January 2013 02:31 Go to next message
Tanel Tammik is currently offline Tanel Tammik
Messages: 4
Registered: January 2013
Junior Member
Hi,

i need to edit xml file, which in most part is lua (mushclient plugin).

koneki IDE does not highlight the code. when i copy the .xml file content into .lua file, code is highlighted. any thoughts how to fix this?
Re: Make .xml files to highlight the code [message #1005220 is a reply to message #1004861] Thu, 24 January 2013 17:02 Go to previous messageGo to next message
Marc Aubry is currently offline Marc Aubry
Messages: 83
Registered: August 2012
Member
Hi Tanel,

In eclipse, each file can be open with different editors, thanks to the right click menu "Open with".
So, to have Lua coloring in your Xml file, you can open the file with the Lua editor.
And to have the Xml coloring open the file with Xml editor (not installed in LDT standalone product).

But, keep in mind that your file is not a full Lua one or a full Xml one, so your file coloration in both editors can be partial or doesn't work at all, because both editors doesn't expected syntax mixed files.

Marc
Re: Make .xml files to highlight the code [message #1005317 is a reply to message #1004861] Thu, 24 January 2013 20:56 Go to previous messageGo to next message
Benjamin Cabé is currently offline Benjamin Cabé
Messages: 151
Registered: July 2009
Location: Toulouse, France
Senior Member

From the "Help > Install New Software..." menu, you should be able to install the "Eclipse XML Editors and Tools" features from the Eclipse Juno repository

Hope this helps Smile
Re: Make .xml files to highlight the code [message #1005354 is a reply to message #1005317] Fri, 25 January 2013 02:47 Go to previous message
Tanel Tammik is currently offline Tanel Tammik
Messages: 4
Registered: January 2013
Junior Member
thanx. now how do i open it, so xml will be reqognized as lua?

file>open will open it in xml editor and lua part of that file is still not highlighted
Previous Topic:Initial impressions of 0.9 release
Next Topic:How to remote debug
Goto Forum:
  


Current Time: Thu Oct 23 13:48:38 GMT 2014

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

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