quote a xml text in a post
-
Hi,
How to quote a xml text in a blog? usingorall not working: < dependencies> < dependency> < groupId>junit</groupId> < artifactId>junit < version>3.8.1</version> < scope>test</scope> < /dependency> < /dependencies> -
Use following tag:
[sourcecode language=’xml’]your xml here[/sourcecode]
It’s described here: http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/ -
Thanks, here is a sample:
[ sourcecode language=”xml”] < groupid>junit</ groupid>< artifactid>junit< /artifactid>[ /sourcecode]
but what you will see is only: junit junit, not the source code itself, here is the sample blog from this:
http://sqllyw.wordpress.com/2008/03/28/test-sourcecode-tag/ -
-
And to publish code in the forum you have to use backticks, otherwise it gets stripped or interpreted and we cannot see what you mean.
- The topic ‘quote a xml text in a post’ is closed to new replies.