Questions tagged [textselection]

In User Interface Design, text selection is the method of handpicking a portion of text, most commonly for the purpose of copying/cutting/pasting.

In User Interface Design, text selection is the method of handpicking a portion of text that will be further acted upon by the user. The selection is done by the interaction devices provided by the user interface.

Text selection is most commonly associated with the user actions of copying, cutting, and pasting. In Graphical User Interface, text selection is performed by a mouse or touch represented as cursors.

459 questions
32
votes
2 answers

Can you set and/or change the user’s text selection in JavaScript?

In JavaScript, there are various methods for accessing the user’s text selection, and creating text selections (or ranges) — see http://www.quirksmode.org/dom/range_intro.html. As per that page, you can programmatically create a range, and access…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
29
votes
2 answers

Set selection by range in Javascript

I want to select text by sending location/anchorOffset and length/offset using Javascript Here is my code var node = document.getElementById("content"); var range = document.createRange(); range.setStart(node, 0); range.setEnd(node, 4);…
Shinning River
  • 813
  • 1
  • 10
  • 23
28
votes
6 answers

How can I block select in Geany?

I often need to select a block of text, like a leading character that occurs on many lines. LibreOffice has block selection. How can I do this in Geany? For example, I want to remove the pipe and the space at the beginning of each line: | Create…
caduceus
  • 1,542
  • 2
  • 16
  • 21
25
votes
7 answers

Can I select a specific block of text in a UITextField?

I have a UITextField in my iPhone app. I know how to make the text field select all of its text, but how can change the selection? Say I wanted to select the last 5 characters, or a specific range of characters, is that possible? if not, can I move…
Sunian314
  • 329
  • 1
  • 4
  • 11
21
votes
3 answers

Return HTML from a user-selected text

I have the following, very simple html page: