XamlStyler icon indicating copy to clipboard operation
XamlStyler copied to clipboard

Add new option that accepts list of elements that should be ignored when formatting

Open grochocki opened this issue 8 years ago • 3 comments

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.

grochocki avatar May 11 '16 07:05 grochocki

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 .... />

`

xlsupport avatar Sep 17 '16 00:09 xlsupport

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.

grochocki avatar Sep 17 '16 23:09 grochocki

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!

ghost avatar Jan 11 '17 21:01 ghost