Is there a tool to properly organize tag attributes for asp files?

I understand that VS200X can correctly identify asp files, however, for convenience in finding attributes, is there a tool that will also sort the order of attributes in the tag alphabetically? I always look at the tag visually, and if the attributes are sorted alphabetically, perhaps from the ID and runat, which should remain first, it would be much easier for me.

+2
source share
3 answers

HTML Tidy

You can set the set-attributes parameter in the configuration file to alpha, and all attributes will be sorted in alphabetical order.

: -
:
: none : none, alpha

,
.
"", .

(tidy.config):

sort-attributes:alpha
show-body-only:yes

(test.html):

<a href="2" class="1"></a>

:

tidy -config tidy.config test.html

:

<a class="1" href="2"></a>
+1

, Google -, Microsoft Expression Web. (. : http://www.expression-web.net/category/microsoft-expression-web/)

, , , :

HTML

" " , HTML -. , Expression Web 2 HTML- . , Reformat HTML .

+1

, Expression Web 4 Microsoft.

"" HTML- HTML HTML 5, -, : http://prettydiff.com/?m=beautify&l=html

My testing showed the above tool to offer excellent HTML formatting capabilities. Even Visual Studio 2015 does not have a ready-made option for sorting HTML attributes when reformatting HTML code.

The above utility is also able to sort the fields of the JSON object.

0
source

All Articles