Shadowen / shadowen.github.io

Personal page.
http://shadowen.github.io
1 stars 0 forks source link

One-click select for code blocks #17

Closed Shadowen closed 9 years ago

Shadowen commented 9 years ago

Use JavaScript/JQuery to auto select a block of code when clicked if it has the attribute ".selectable"

Shadowen commented 9 years ago

See http://stackoverflow.com/questions/1173194/select-all-div-text-with-single-mouse-click

Shadowen commented 9 years ago

http://keestalkstech.com/2014/04/click-to-select-all-on-the-pre-element/ Seems to be the only working option.