Actually, maybe another way to approach this would be to have a "format as" function in the formatter - select a bunch of whatever, and apply the same formatting rules.
This would be an awesome feature allowing a standard formatting schema for C++, C#, javascript etc etc etc
This would also solve the problem of embedded code sections in .aspx files and the like - 10 lines of javascript - hey format that sucker as javascript/C#, 10 lines of HTML - format that sucker too - some C# or VB code within <% %> tags - select that sucker and format as desired! Wow - I love it!
Similarly those of use who are pedants and like to see our HTML formatted the same as our XML - would be really happy.
Thanks for listening