dp.SyntaxHighlighter 1.5.0 Tests and Samples

http://code.google.com/p/syntaxhighlighter/

XML / HTML

Languages:

  1. C#
  2. CSS
  3. C++
  4. Delphi
  5. Java
  6. JavaScript
  7. PHP
  8. Python
  9. Ruby
  10. SQL
  11. Visual Basic
  12. XML / HTML

Features:

  1. Smart tabs
  2. First line
  3. Expand code
  4. Show columns
  5. No gutter
  6. No controls
Text body before.

Using textarea

Using pre

<?xml version="1.0" encoding="utf-8" ?> 

<!-- comments -->
<rootNode>
	<childNodes>
		<childNode attribute = "value" namespace:attribute='value' attribute=/>
		<childNode />
		<childNode />
		<childNode />
		<childNode attribute="value"></childNode>
		<namespace:childNode>
			<![CDATA[
				this is some CDATA content
				<!-- comments inside cdata -->
				<b alert='false'>tags inside cdata</b>
			]]>
		</namespace:childNode>
	</childNodes>
</rootNode>

<!--
  -- Multiline comments <b>tag</b>
  -->

Text body after.