jsbeautifier

24 views
Skip to first unread message

Brian Bonner

unread,
Oct 14, 2013, 8:13:19 AM10/14/13
to script...@googlegroups.com
I wanted to include a formatter for the HTML   The result of the HTML after ALT+SHIFT+F isn't desirable to me.

I looked at adding jsbeautifier...but saw that scripted actually uses jsbeautifier...awesome.

I looked at the wiki configuration page and it looks like there are a few commands that are supported.  Any hints as to how I would include support for configuring the HTML formatting so I can configure JSBeautifier so it doesn't mangle my tags and white spacing?

Thank you!


Here's what my HTML looks like before formatting.

<!-- List Directory Entries -->
<pagination num-pages="noOfPages" current-page="currentPage" on-select-page="search(page)"></pagination>
Entries per page <select class="input-mini" ng-model="pageSize" ng-change="search(page)"><option>2</option><option>4</option><option>6</option><option>8</option></select>
<ul class="thumbnails" >
    <li class="{{span}}" ng-repeat="de in directoryEntries">
    <summary ng-model="{{de}}" />
    </li>
</ul>



Here's what it looks like after:


<!-- List Directory Entries -->
<
pagination num - pages = "noOfPages"
current - page = "currentPage"
on - select - page = "search(page)" > < /pagination>
Entries per page <select class="input-mini" ng-model="pageSize" ng-change="search(page)"><option>2</option > < option > 4 < /option><option>6</option > < option > 8 < /option></select > < ul class = "thumbnails" > < li class = "{{span}}"
ng - repeat = "de in directoryEntries" > < summary ng - model = "{{de}}" / > < /li>
</ul >
Reply all
Reply to author
Forward
0 new messages