Normally what I do with this type of multi-line message is put that into a resource file. If you want to use it as a template (i.e. just changing a few fields), then replace things such as kate, female with {0}, {1}, then use MessageFormat to generate the output. This way, it is a lot easier to customize the output. You can even do i18n with it ^_^
【在 p***p 的大作中提到】 : I want print out following message: : : http://www.w3.org/2001/vxml" xml:lang="en-GB"> :
g*g
3 楼
You probably miss one or more there.
【在 p***p 的大作中提到】 : I want print out following message: : : http://www.w3.org/2001/vxml" xml:lang="en-GB"> :
c*z
4 楼
That is exactly what the OP should do. But to answer his question, you get to have \\" instead of \" to do excaping. the first \ escapes the second \
【在 c*****t 的大作中提到】 : Normally what I do with this type of multi-line message is put that : into a resource file. If you want to use it as a template (i.e. just : changing a few fields), then replace things such as kate, female with : {0}, {1}, then use MessageFormat to generate the output. : This way, it is a lot easier to customize the output. You can even : do i18n with it ^_^