nilfmq
Last Updated: February 25, 2016
·
892
· d13
F49f1e8a74295f3c4b1eb8641f658909

Notepad bookmarklet with Behave.js

Taking inspiration from another bookmarklet post, "One line browser notepad", I've decided to make it coder-friendly.

Armed with a JS library a co-worker of mine shared this morning called Behave.js, I wrote this:

data:text/html, <html><head><style type="text/css"> html { font-family: Arial } </style><script src="http://jakiestfu.github.com/Behave.js/behave.js"></script><script>window.onload=function(){var editor = new Behave({textarea: document.getElementById('myTextarea')});};</script></head><body><textarea id="myTextarea" style="width:100%;height:100%;margin:0 auto;padding:1rem;font-size:1rem; border: none; outline: none" autofocus></textarea></body>

Enjoy!

Don't forget to bookmark it afterward so you can fire up the editor whenever you need it.

Say Thanks
Respond

2 Responses
Add your response

4202
D42a7264714dee5006b9c99d2567a320

Behave.js looks awesome :) But why not use something like CodeMirror?

over 1 year ago ·
4203
F49f1e8a74295f3c4b1eb8641f658909

@dpashkevich Just checked it out. Very cool! I will try that one as well.

over 1 year ago ·