Improve XML snippet formatting and preprocessor support for it.