JSFiddle - React, Tailwind, and code Playground
by Roy Howie
HTML
<div id="holder">
</div>
CSS
html {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
JavaScript
var code =
"\
...............................................................\
.................#.............................................\
...###############.......##############..........########......\
.################......################........####...####.....\
.##.....####..........##....####.....###......##.......####....\
.###....###...##............###......##......##................\
..##....#######.............###.....###.....###................\
.......###..##.............##########.......###....#########...\
.......###.................###...............##........###.....\
.......###.................###...............###......####.....\
......###.................###.................####....###......\
...###########........############.............##########......\
......................................................###......\
................................................########.......\
...............................................................\
"
$("#holder").append(code.split("\n").join("<br>"));