I am writing a blog about Android by WP-CodeBox plugin and want to add a layout.xml into blog like this:
<pre><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView android:id="@+id/icon"
android:layout_width="@dimen/notification_large_icon_width"
android:layout_height="@dimen/notification_large_icon_height"
android:background="@android:drawable/bg_tile"
android:scaleType="center"
/>
</LinearLayout></pre>
in HTML mode, and when I Change the edit mode to visual mode, the xml is GONE! Please help me how to show the xml without malformed in xml mode. Is there any other xml edit plugin in wordpress? Thanks!
You could use this highlighter. This will give you this output for your XML(with Eclipse style):
It looks like this: