<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,11 +34,14 @@
 
 			// just dump the values
 			$('#output').html(
+			  &quot;hexdump:\n&quot; + hexdump(this.value, range.start, (range.end != range.start) ? range.end - 1 : range.end) + &quot;\n\n&quot; +
 				&quot;id: &quot; + this.id + &quot;\n&quot; +
 				&quot;start: &quot; + range.start + &quot;\n&quot; +
 				&quot;length: &quot; + range.length + &quot;\n&quot; +
-				&quot;end: &quot; + range.end + &quot;\n&quot; + 
-				&quot;selected text:\n&lt;span class=\&quot;txt\&quot;&gt;&quot; + (($('#ws').get(0).checked) ? range.text.whitespace() : range.text) + &quot;&lt;/span&gt;\n&quot;
+        &quot;end: &quot; + range.end + &quot;\n&quot; +
+        ((typeof range['row'] != 'undefined') ? &quot;caret row: &quot; + range.row + &quot;\n&quot; : '') +
+        ((typeof range['col'] != 'undefined') ? &quot;caret col: &quot; + range.col + &quot;\n&quot; : '') +
+        &quot;selected text:\n&lt;span class=\&quot;txt\&quot;&gt;&quot; + (($('#ws').get(0).checked) ? range.text.whitespace() : range.text) + &quot;&lt;/span&gt;\n\n&quot;
 			);
 		
 		}
@@ -53,7 +56,7 @@
 			if (!RegExp.escape) { 
 			  RegExp.escape = (function() { // RegExp.escape by Simon Wilson &amp; Mark Wubben
 			    var specials = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\' ];
-			    sRE = new RegExp( '(\\' + specials.join('|\\') + ')', 'g' );
+			    var sRE = new RegExp( '(\\' + specials.join('|\\') + ')', 'g' );
 			    return function(text) { return text.replace(sRE, '\\$1') }
 			  })();
 
@@ -75,6 +78,39 @@
 			}
 			
 		})();
+
+		function hexdump(txt, hi_f, hi_t) {
+			var hex = '', tmp;
+
+			if (txt) {
+
+				for (var i = 0, j = txt.length; i &lt;= j; i++) {
+
+					tmp = txt.charCodeAt(i).toString(16);
+
+					if (i == hi_f)
+						hex += '&lt;span class=&quot;hi&quot;&gt;';
+
+					if (i &lt; txt.length)
+						hex += ( (tmp.length == 2) ? tmp : '0' + tmp );
+					else
+						hex += &quot;&amp;nbsp;&amp;nbsp;&quot;;
+
+					if (i == hi_t)
+						hex += '&lt;/span&gt;';
+
+					if ((i+1) % 16 == 0)
+						hex += &quot;\n&quot;;
+					else
+						hex += ' ';
+
+				}
+
+			}
+
+			return hex;
+
+		}
 		
 		//--&gt;&lt;!]]&gt;
 	
@@ -120,6 +156,11 @@
 			display:inline;
 			color:black;
 		}
+
+  	#output .hi {
+  		background:#cc9;
+  		color:#630;
+  	}
 		
 		pre {
 			white-space:pre-wrap;</diff>
      <filename>test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a167171daef999e3fd6201ac2710c23e42a2142c</id>
    </parent>
  </parents>
  <author>
    <name>Alex Brem</name>
    <email>alex@fluktuation.net</email>
  </author>
  <url>http://github.com/localhost/jquery-fieldselection/commit/0a2447008b720e2ff46b8051915cdc4e864d6d0b</url>
  <id>0a2447008b720e2ff46b8051915cdc4e864d6d0b</id>
  <committed-date>2008-11-14T05:29:05-08:00</committed-date>
  <authored-date>2008-11-14T05:29:05-08:00</authored-date>
  <message>added hexdump to test.html</message>
  <tree>c437de1ec8e47bb48ba5d2a4c247639872c69fa1</tree>
  <committer>
    <name>Alex Brem</name>
    <email>alex@fluktuation.net</email>
  </committer>
</commit>
