<textarea cols="50" rows="3" onclick="javascript:select();">
Highlight this text
</textarea>
별다른 코딩없이 코드를 복사하기 위해서 하이라이트 기능주기.
input box등에도 사용가능.
예제:
원글:Click to Hightlight all text: It’s Easier than you think.
Highlight this text
</textarea>