<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2009://34.35615-</id>
  <updated>2009-11-16T15:11:25Z</updated>
  <title>Comments for ActionScript and MXML Pretty Printer (http://www.insideria.com/2009/03/actionscript-pretty-printer.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2009://34.35615</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=35615" title="ActionScript and MXML Pretty Printer" />
    <published>2009-03-17T13:00:00Z</published>
    <updated>2009-08-09T20:06:26Z</updated>
    <title>ActionScript and MXML Pretty Printer</title>
    <summary>I previously blogged about the importance of coding standards, and offered my opinions on what beautiful code looks like. Regardless of whether you accept my code formatting conventions for yourself or not, there is an excellent Eclipse plug-in that can...</summary>
    <author>
      <name>Mike Slinn</name>
      <uri>http://mslinn.com</uri>
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<p>I <a href="http://www.insideria.com/2008/10/beautiful-code-is-good-code.html">previously blogged</a> about the importance of coding standards, and offered my opinions on what beautiful code looks like.  Regardless of whether you accept my code formatting conventions for yourself or not, there is an excellent Eclipse plug-in that can format ActionScript and MXML code to your taste.</p>

<p>Download <a href="http://sourceforge.net/projects/flexformatter/">Flex Formatter</a> and see for yourself.&nbsp; <a href="http://www.mslinn.com/sites/flex/ribbonTest/FlexFormatter.properties">Here</a> is a configuration file that implements the vertically compressed formatting that I espouse.</p><p>Update: Here is the Eclipse update site:<br /><a href="http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite" target="_blank">http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite</a></p>
<p>_______________________________</p>
<p>Mike Slinn<br />
Independent full-service software contractor and author<br />
<a href="http://slinnbooks.com/">http://slinnbooks.com</a><br />
<a href="http://www.mslinn.com/">http://mslinn.com</a></p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2055595</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2055595" />
    <title>Comment from Jack Mitchell on 2009-03-20</title>
    <author>
        <name>Jack Mitchell</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Mike,</p>

<p>This is a great plugin.  Thanks for telling me about it.  One question I have is how to import the configuration you gave above?</p>

<p>Thanks,<br />
Jack</p>]]>
    </content>
    <published>2009-03-20T13:25:22Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2055599</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2055599" />
    <title>Comment from Mike Slinn on 2009-03-20</title>
    <author>
        <name>Mike Slinn</name>
        <uri>http://mslinn.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://mslinn.com">
        <![CDATA[<p>Windows:<br />
Window / Preferences / Flex Formatting / Import ... button<br />
Mac:<br />
Eclipse / Preferences / Flex Formatting / Import ... button</p>

<p>The Import and Export buttons are at the bottom of the dialog panel.</p>]]>
    </content>
    <published>2009-03-20T14:33:44Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2055761</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2055761" />
    <title>Comment from Ernest on 2009-03-23</title>
    <author>
        <name>Ernest</name>
        <uri>https://sourceforge.net/docman/display_doc.php?docid=137421&amp;group_id=248408</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="https://sourceforge.net/docman/display_doc.php?docid=137421&amp;group_id=248408">
        <![CDATA[<p>Hi.  I looked at your FlexFormatter .properties file and then read your previous blog entry.  One thing you didn't appear to take advantage of is the ability to sort mxml attributes alphabetically (or perform other custom orderings).</p>

<p>1. Go to Window->Preferences->Flex Formatting----MXML\Configure custom attribute order...  <br />
2. Uncheck the "Don't use custom attribute order and line breaks" button and check the "Sort any remaining attrs" button and hit OK.</p>

<p>If you want to make special cases for attributes like 'id', 'width' etc. you can do that as well in the ordering table.</p>]]>
    </content>
    <published>2009-03-23T11:58:20Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2055772</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2055772" />
    <title>Comment from Mike Slinn on 2009-03-23</title>
    <author>
        <name>Mike Slinn</name>
        <uri>http://mslinn.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://mslinn.com">
        <![CDATA[<p>I missed that, and I want to use that feature. Thank you for pointing it out!</p>

<p>Mike</p>]]>
    </content>
    <published>2009-03-23T14:37:58Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2055776</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2055776" />
    <title>Comment from Mike Slinn on 2009-03-23</title>
    <author>
        <name>Mike Slinn</name>
        <uri>http://mslinn.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://mslinn.com">
        <![CDATA[<p>I updated the preferences file that is linked in the blog posting.</p>]]>
    </content>
    <published>2009-03-23T15:18:04Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35615-comment:2057558</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35615" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/03/actionscript-pretty-printer.html#comment-2057558" />
    <title>Comment from Tahir Awan on 2009-04-15</title>
    <author>
        <name>Tahir Awan</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I just installed the plugin. It is working ok for MXML but not so good for action script blocks in the MXML files.</p>

<p>Hope I don't have to select/highlight MXML code to format/indent.</p>

<p>Thanks,<br />
Tahir</p>]]>
    </content>
    <published>2009-04-15T11:06:15Z</published>
  </entry>

</feed
