Highlighting Selected Text

This tutorial shows how to select words by double-clicking, returning the word and highlighting the selection

It works by wrapping all examples of the text in a 'span' tag pair

Example text taken from Wikipedia

The Fall are an English post-punk band, formed in Prestwich, Greater Manchester, in 1976. With an ever-changing line up, the group essentially consists of its founder and only constant member, Mark E. Smith, who has said "If it's me and your granny on bongos, then it's [the] Fall".

First associated with the late 1970s punk movement, the band's music has evolved through numerous stylistic changes, often concurrently with changes in the group's membership.

The Fall's music is characterised by repetition, an abrasive guitar-driven sound, and is always underpinned by Smith's often cryptic lyrics, described by critic Steve Huey as "abstract poetry filled with complicated wordplay, bone-dry wit, cutting social observations, and general misanthropy."

para with with with repeated text repeated text repeated text


This demo was created by Robert Jones of Craic Computing and is freely distributed under the terms of the MIT license.