facebook

Add XML formatting to the XML editor [Enhancement]

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #204457 Reply

    Scott Ryan
    Member

    I would like to see some sort of formatter or pretty printer for the XML files. Our config files get pretty ugly and we use HTML tidy to clean them up. I would like to see something similar in MyEclipse.

    Scott Ryan

    #204458 Reply

    Scott Anderson
    Participant

    Scott,

    That one is an open enhancement that we’re hoping to get into 2.8.

    #204464 Reply

    Ivar Vasara
    Member

    @scott@theryansplace.com wrote:

    I would like to see some sort of formatter or pretty printer for the XML files. Our config files get pretty ugly and we use HTML tidy to clean them up. I would like to see something similar in MyEclipse

    I’ll second the request.. that’d be great.

    #204472 Reply

    Riyad Kalla
    Member

    Until formatting is in, as a hack you can copy-paste the contents into a JSP file, format it, then copy/paste it back into your XML file.

    Definately suboptimal, but for the users that don’t have a formatting plugin installed, and just have to have it, this works fine.

    #205605 Reply

    mogarick
    Member

    1+
    i’d like to see this in the next release. 🙂

    i’d like to know if the struts-config editor could have this formating feature too.

    greetings.

    #207568 Reply

    jnials
    Member

    I’d like to be able to see this in the next release as well. I am using docbook xml for our documentation, and would like to be able to 1) Format, and 2) validate.

    #207570 Reply

    Riyad Kalla
    Member

    jnials,
    You have been able to validate XML for a while now… are you not seeing this when using our XML Editor?

    #207983 Reply

    jnials
    Member

    I am not seeing it. I just upgraded to the 2.8 Beta running on Eclipse 3.0rc1.

    I see the options in the preferences file, but no option to validate, either in the right click menus or on the pulldowns.

    -Jon

    #207985 Reply

    Riyad Kalla
    Member

    Are you sure you are opening the XML files with our editor? Right click on your XML file, go to Open With, and select “MyEclipse XML Editor”

    #208101 Reply

    jnials
    Member

    Yes, I am sure. Just did it again to confirm.

    Tried an html file to see if they worked correctly. They do.

    -Jon

    #208107 Reply

    Riyad Kalla
    Member

    Jon,
    When you said “I just upgraded to the 2.8 Beta running on Eclipse 3.0rc1.” you meant 3.8 Beta right? Also can you paste any exceptions from your log file here for us to look at?

    #208206 Reply

    Riyad Kalla
    Member

    Jon,
    I finally got to the bottom of this. THe manual validate is incorrectly tied to the Auotmatic Validation setting in the XML Editor > Configuration options in MyEclipse preferences. If you change this to “All” then you will see the Validate option everywhere.

    Sorry about this mix up, hopefully we can get these fixed soon.

    #208350 Reply

    jnials
    Member

    @support-rkalla wrote:

    Jon,
    I finally got to the bottom of this. THe manual validate is incorrectly tied to the Auotmatic Validation setting in the XML Editor > Configuration options in MyEclipse preferences. If you change this to “All” then you will see the Validate option everywhere.

    Sorry about this mix up, hopefully we can get these fixed soon.

    Hope so. This still doesn’t work. Here is how I can easily recreate it (all under linux) and yes, I am running 3.8 beta with 3.0 RC1

    Create a simple project with no files. Import an existing xml file. Or create one from scratch. Right click the file name in the menu, make sure it is opening with the MyEclipse XML Editor. You will discover that when you pull down the MyEclipse menu item, then you do not get options to validate, or tidy the file as you would with HTML or XHTML. I get a single greyed out entry of “Add WebProject Capabilities..”

    Hopefully I can stop using jedit soon for my xml files.

    -Jon

    #208358 Reply

    Riyad Kalla
    Member

    Jon,
    Navigate to Window > Preferences > MyEclipse > Editors > XML Editor > Configuration and under the “validation” Settings change it to “All” instead of “Deployment descriptors”, you should now have a validate option in your context menu.

    #208367 Reply

    jnials
    Member

    @support-rkalla wrote:

    Jon,
    Navigate to Window > Preferences > MyEclipse > Editors > XML Editor > Configuration and under the “validation” Settings change it to “All” instead of “Deployment descriptors”, you should now have a validate option in your context menu.

    Been there, done that. Doesn’t work.

    That’s what I have been telling you. I followed the instructions.

    -Jon

Viewing 15 posts - 1 through 15 (of 24 total)
Reply To: Add XML formatting to the XML editor [Enhancement]

You must be logged in to post in the forum log in