Home Download Buy Blog Forum Support

Expand XML (or other code)

Expand XML (or other code)

Postby chtrom on Wed Jun 05, 2013 1:43 am

Is it possible to expand code that has been "minified" into a single line? Specifically, I want to take a single line of XML and have it automatically expanded and indented for editing.
chtrom
 
Posts: 2
Joined: Wed Jun 05, 2013 1:41 am

Re: Expand XML (or other code)

Postby sfranky on Wed Jun 05, 2013 7:29 am

There's a plugin called indent xml that does this. Read this thread:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=3262
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: Expand XML (or other code)

Postby chtrom on Wed Jun 05, 2013 10:58 am

sfranky wrote:There's a plugin called indent xml that does this. Read this thread:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=3262


This is almost what I'm looking for. I don't suppose it is possible to do the same thing with other languages?
chtrom
 
Posts: 2
Joined: Wed Jun 05, 2013 1:41 am

Re: Expand XML (or other code)

Postby qgates on Wed Jun 05, 2013 10:31 pm

Code folding is what you're asking for. Sadly Sublime's folding is pretty limited at the moment and only works based on indents. Also, it won't save folds as part of a project.

A number of us are holding out for lexically-aware code folding in Sublime :)
qgates
 
Posts: 230
Joined: Mon Nov 05, 2012 4:33 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 17 guests