5,389
edits
m (another try) |
m (and another one) |
||
Line 1: | Line 1: | ||
<includeonly>|-style="font-family:courier" | <includeonly>|-style="font-family:courier" | ||
!{{{1|0x00}}} | !{{{1|0x00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{19|FF}}}{{{36|FF}}}{{{53|FF}}}"|{{{2|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{20|FF}}}{{{37|FF}}}{{{54|FF}}}"|{{{3|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{21|FF}}}{{{38|FF}}}{{{55|FF}}}"|{{{4|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{22|FF}}}{{{39|FF}}}{{{56|FF}}}"|{{{5|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{23|FF}}}{{{40|FF}}}{{{57|FF}}}"|{{{6|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{24|FF}}}{{{41|FF}}}{{{58|FF}}}"|{{{7|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{25|FF}}}{{{42|FF}}}{{{59|FF}}}"|{{{8|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{26|FF}}}{{{43|FF}}}{{{60|FF}}}"|{{{9|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{27|FF}}}{{{44|FF}}}{{{61|FF}}}"|{{{10|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{28|FF}}}{{{45|FF}}}{{{62|FF}}}"|{{{11|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{29|FF}}}{{{46|FF}}}{{{63|FF}}}"|{{{12|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{30|FF}}}{{{47|FF}}}{{{64|FF}}}"|{{{13|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{31|FF}}}{{{48|FF}}}{{{65|FF}}}"|{{{14|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{32|FF}}}{{{49|FF}}}{{{66|FF}}}"|{{{15|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{33|FF}}}{{{50|FF}}}{{{67|FF}}}"|{{{16|00}}} | ||
|BGCOLOR="#{{{ | |BGCOLOR="#{{{34|FF}}}{{{51|FF}}}{{{68|FF}}}"|{{{17|00}}} | ||
!{{{ | !{{{70|"°°°°°°°°°°°°°°°°"}}}</includeonly><noinclude> | ||
Here's an all-ASCII alternative to GIF/PNG snapshots of hex data. | Here's an all-ASCII alternative to GIF/PNG snapshots of hex data. | ||
Line 30: | Line 30: | ||
<nowiki>{|border=1 cellspacing=0</nowiki> | <nowiki>{|border=1 cellspacing=0</nowiki> | ||
<nowiki>{{HexRow|0x00</nowiki> | <nowiki>{{HexRow|0x00</nowiki> | ||
<nowiki>|01|51|02|00|01|00|00|06|AD|DE|AD|DE|AD|DE|AD|DE</nowiki> | <nowiki>|01|51|02|00|01|00|00|06|AD|DE|AD|DE|AD|DE|AD|DE|=</nowiki> | ||
<nowiki>|FF|FF|FF|FF|FF|FF|FF|FF|00|00|00|00|00|00|00|00</nowiki> | <nowiki>|FF|FF|FF|FF|FF|FF|FF|FF|00|00|00|00|00|00|00|00|=</nowiki> | ||
<nowiki>|00|00|00|00|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF</nowiki> | <nowiki>|00|00|00|00|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|=</nowiki> | ||
<nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00</nowiki> | <nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|=</nowiki> | ||
<nowiki>|Who needs this?°}}</nowiki> | <nowiki>|Who needs this?°}}</nowiki> | ||
<nowiki>{{HexRow|0x10</nowiki> | <nowiki>{{HexRow|0x10</nowiki> | ||
<nowiki>|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE</nowiki> | <nowiki>|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|AD|DE|=</nowiki> | ||
<nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00</nowiki> | <nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|=</nowiki> | ||
<nowiki>|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF</nowiki> | <nowiki>|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|=</nowiki> | ||
<nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00</nowiki> | <nowiki>|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|=</nowiki> | ||
<nowiki> | <nowiki>}}</nowiki> | ||
<nowiki>|}</nowiki> | <nowiki>|}</nowiki> | ||
produces the following output : | produces the following output : | ||
Line 93: | Line 93: | ||
**Most of the time it's actually irrelevant; I'd systematically show all non-printable chars as '''°'''. | **Most of the time it's actually irrelevant; I'd systematically show all non-printable chars as '''°'''. | ||
**If all 16 chars are non-printable, leave the last argument blank (the default value is '''°°°°°°°°°°°°°°°°''') | **If all 16 chars are non-printable, leave the last argument blank (the default value is '''°°°°°°°°°°°°°°°°''') | ||
The "|=" is a hack so that the newline is not read inas part of the argument (see HERE for details) | |||
Only the fixed-size font is specified in this template, as well as bold for offset for offset and ASCII. | Only the fixed-size font is specified in this template, as well as bold for offset for offset and ASCII. |