Home
Help
Search
Login
Register
SlickEdit.com
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
August 01, 2010, 05:02:01 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
SlickEdit Community
>
SlickEdit Product Discussion
>
SlickEdit®
>
XML Beautify only on view possible (like softwrap)?
Pages: [
1
]
« previous
next »
Print
Author
Topic: XML Beautify only on view possible (like softwrap)? (Read 389 times)
blueboy
Community Member
Hero Points: 1
Posts: 16
XML Beautify only on view possible (like softwrap)?
«
on:
November 06, 2009, 06:10:02 AM »
Hi,
I have following problem/request with unformated XML document. If I open an unformated (no idents, no spaces, no tabs, no CR) I'd like to see it in a beautified view but without changes to the document, e.g. if the document is opened and I enable softwrap the view to the document has changed, but not the document!
If I execute the beautifier the view has changed and I can see the document in my requested way, but the content of the document has changed (title with post *) too.
Is there a way only to change the view in the editor, but not the document (may be a small change in a macro file)?
BR
Robert
Logged
Scott H
SlickEdit Team Member
Community Member
Hero Points: 9
Posts: 197
Re: XML Beautify only on view possible (like softwrap)?
«
Reply #1 on:
November 06, 2009, 09:53:33 AM »
I'm not sure I understand. If I open an XML file and beautify it, the editor contents are changed (we'll call this the view), but the actual file itself is not changed (we'll call that the document). Are we using the same terminology?
If you execute the beautifier, what would you like to see? Do you want the changed status (the *) to not be set for the editor window?
Logged
Graeme
Community Member
Hero Points: 113
Posts: 928
Re: XML Beautify only on view possible (like softwrap)?
«
Reply #2 on:
November 06, 2009, 06:29:46 PM »
It sounds like you want to edit the file in beautify view but have it saved on disk with no whitespace. The only way to do that is to remove all whitespace when the file is closed or slick closes and to beautify it automatically when the file is opened. You can write macros to achieve that but you can't remove absolutely all whitespace because you'll get words running together. If you're trying to save space on disk or keep the file size small for whatever reason, maybe compression would be better.
Graeme
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SlickEdit Product Discussion
-----------------------------
=> SlickEdit®
-----------------------------
Archived Forums
-----------------------------
=> SlickEdit® Plug-In for Eclipse™
-----------------------------
SlickEdit Product Discussion
-----------------------------
=> SlickEdit® Tools for Microsoft® Visual Studio®
=> Slick-C® Macro Programming
-----------------------------
General
-----------------------------
=> General Programming
=> Community Forum
-----------------------------
SlickEdit Product Discussion
-----------------------------
===> Did you know?
===> SlickEdit Gadgets
=> SlickEdit® Core for Eclipse™
-----------------------------
Archived Forums
-----------------------------
=> SlickEdit 2009 - Beta
-----------------------------
SlickEdit Product Discussion
-----------------------------
===> SlickEdit User Macros
-----------------------------
Archived Forums
-----------------------------
=> SlickEdit Core 3.5 for Eclipse - Beta
=> SlickEdit® 2010 - Release Candidate
-----------------------------
SlickEdit Product Discussion
-----------------------------
===> SlickEdit v15.0.1 Release Candidate