> >
> > My question is simple - if I cut and paste a bunch of XML into  
> > BBEdit - how do I like select all of it and get it to indent  
> > reflecting nesting?  Like the way Mozilla/Firefox displays XML?
> >
...
> 
> Does
> 
> Mark up -> Utilities -> Format
> 
> do the job?
> 

I've found that only works with a lot of work (making a Source Format Profile 
with all of your tags) or if you like EVERYTHING on its own line. The Markup > 
Tidy > Reflow Document… command is a little better, but it acts on the whole 
document. The approach I've settled on is a Unix Filter that is command line 
Tidy with all of my favorite settings.

You can get tidy from:
http://tidy.sourceforge.net/


My Unix Filter is:

#!/bin/sh
tidy --input-xml yes --output-xml yes --indent yes --indent-spaces 4 \
--tab-size 4 --wrap 0 --quiet yes --newline LF --vertical-space no "$1"


You can find all of the tidy config options at:
http://tidy.sourceforge.net/docs/quickref.html

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to