Top "Selection" questions

Selection is also the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding.

Get selected text and selected nodes on a page?

When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text …

javascript firefox xhtml firefox-addon selection
JavaScript: Disable text selection via doubleclick

When double-clicking on a html page most browsers select the word you double-click on (or the paragraph you triple-click on). …

javascript jquery html selection
WPF Toolkit: how to scroll datagrid to show selected item from code behind?

I tried the following, all of which fail on function ScrollIntoView and give a NullReferenceException: // doesn't work grid.SelectedItem = sItem; …

wpf scroll datagrid selection wpftoolkit
WPF - How to combine DataTrigger and Trigger?

NOTE I have asked the related question: How to combine DataTrigger and EventTrigger? I have a list box containing several …

.net wpf triggers selection listboxitem
Why is the runtime of the Selection Algorithm O(n)?

According to Wikipedia, partition-based selection algorithms such as quickselect have runtime of O(n), but I am not convinced by …

algorithm selection big-o
How to make element not lose focus when button is pressed?

I have a textarea in which I am inserting content at the location of the caret (thanks to Tim Down's …

javascript jquery html focus selection
How can I save a text block in visual mode to a file in Vim?

The title is very descriptive. Just in case, I will give an example: START BLOCK1 something END BLOCK1 START BLOCK2 …

file vim save selection
Set caret position at a specific position in contenteditable div

SEE BEFORE MARKING DUPLICATE/DOWNVOTING The contenteditable div will not have child elements I do not want to set the …

javascript html google-chrome selection caret
Persisting the changes of range objects after selection in HTML

Is there a way to save the changes like changing the background of HTML text that span over multiple tags …

javascript jquery html range selection
Multiple selections in VIM

Is it possible to select multiple non-consecutive lines (or sections) in VIM's visual mode? If so, how?

vim selection