For fun: browser as scratchpad

Categories: Programming

A colleague recently pointed out that the following command can be pasted into either Firefox or Chrome to get an editable window for keeping notes. The text can even be saved afterwards..

data:text/html,<html contenteditable>

You can adjust the font-size, etc with inline styles, eg:

data:text/html,<html contenteditable style="line-height:1.5;font-size:20px;">

Another colleague pointed out a nice “retro console” variant:

data:text/html,<html contenteditable style="background:black;color:lime;font-family:monospace">

On a similar topic, a browser window can also make a nice JSON pretty-formatter (read-only):

data:application/json,{"yo":1}