I always had the problem in my posts to include xml snippets. A problem other people must have experienced too. I came across the blogger site: http://formatmysourcecode.blogspot.com/. It allows to copy your xml, paste and convert it. An example is below, it should show xml ...
This is the xml with embedded stylesheet. Without stylesheet and with tab size2, it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template autoinsert="true" context="gettercomment_context"
deleted="false" description="Comment for getter method" enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.gettercomment"
name="gettercomment">
/** * @return the ${bare_field_name} */
</template>
<template autoinsert="true" context="delegatecomment_context"
deleted="false" description="Comment for delegate methods"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment"
name="delegatecomment">
/** * ${tags} * ${see_to_target} */
</template>
This is the xml with embedded stylesheet. Without stylesheet and with tab size2, it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template autoinsert="true" context="gettercomment_context"
deleted="false" description="Comment for getter method" enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.gettercomment"
name="gettercomment">
/** * @return the ${bare_field_name} */
</template>
<template autoinsert="true" context="delegatecomment_context"
deleted="false" description="Comment for delegate methods"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment"
name="delegatecomment">
/** * ${tags} * ${see_to_target} */
</template>
Comments