What's the code for that Unicode character?
That's what I ask all the time while browsing. Then I select it with the mouse and click on the following bookmarklet:
javascript:top.alert("&#"+top.prompt("char?",window.getSelection()).charCodeAt(0)+";");
It will pop-up a prompt which is already populated with the value of the selection, or you can copy and paste from another source.
Then it will simply alert the html code for you.
More about using bookmarklets: http://en.wikipedia.org/wiki/Bookmarklet
Fork the gist: https://gist.github.com/811331
Written by travis
Related protips
1 Response
Reminds me of http://whatthekeycode.com/
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#