XamlStyler
XamlStyler copied to clipboard
Add new option that accepts list of elements that should be ignored when formatting
XamlStyler would not modify any portion of elements in the block list. This is mainly to address compatibility issues where some elements may require a certain ordering of attributes, which would otherwise prohibit the use of the plugin.
Similar to this issue.... but with a twist.
I've had an issue with an ultra long Figures attribute in a PathGeometry, where I must keep the linebreaks. (it's a very long string qnd the highlighter goes bananas if it's flattened) I only want this block of lines ignored, but now I had to turn off the SaveOnExit which is a shame for all my other stuff.
It could be done using comment "blocks" similar to the "XAML Regions" extension. ` <PathGeometry .... />
`
Thanks for the suggestion! I created #44 to capture discussion on this issue, since it seems different enough to be considered an independent feature from blocked elements.
I need the blacklisted elements feature before I can use XamlStyler. And I want to very badly! :)
I have special elements that are used in an automated build action.
The elements look like this:
<?BODY BEGIN?>
<?BODY END?>
My build process uses these elements to dynamically assemble large numbers of XAML files together into single resource dictionaries.
Essentially, I need XamlStyler to leave these alone!