Hex dump: Difference between revisions

m
→‎{{header|Wren}}: Shouldn't really align ascii in last line as spaces are significant.
m (Pygments can do hexdump)
m (→‎{{header|Wren}}: Shouldn't really align ascii in last line as spaces are significant.)
Line 928:
}
}
var text = "|" + ascii.join() + (" " * (rl-lc)) + "|"
var offset = start + i * rl
if (i < rc-1 || lc == rl) {
Line 967:
00000040 68 00 72 00 65 00 73 00 74 00 6f 00 6d 00 61 00 |h.r.e.s.t.o.m.a.|
00000050 74 00 68 00 79 00 20 00 73 00 69 00 74 00 65 00 |t.h.y. .s.i.t.e.|
00000060 20 00 3d d8 00 de 2e 00 | .=..... |
00000068
 
Line 981:
00000050 116 000 104 000 121 000 032 000 115 000 |t.h.y. .s.|
0000005a 105 000 116 000 101 000 032 000 061 216 |i.t.e. .=.|
00000064 000 222 046 000 |.... |
00000068
 
Line 995:
00000050 164 000 150 000 171 000 040 000 163 000 |t.h.y. .s.|
0000005a 151 000 164 000 145 000 040 000 075 330 |i.t.e. .=.|
00000064 000 336 056 000 |.... |
00000068
 
Line 1,032:
0000005a 01101001 00000000 01110100 00000000 01100101 00000000 |i.t.e.|
00000060 00100000 00000000 00111101 11011000 00000000 11011110 | .=...|
00000066 00101110 00000000 |.. |
00000068
 
Dump of "example_utf16.txt" in base 16 from byte index 2 to 25:
00000002 52 00 6f 00 73 00 65 00 74 00 74 00 61 00 20 00 |R.o.s.e.t.t.a. .|
00000012 43 00 6f 00 64 00 65 00 |C.o.d.e. |
0000001a
</pre>
9,482

edits