Magp.ie

A nest for the random, shiny, online tidbits I stumple across…

  • HOME
  • Code
  • Guides
  • Shortcuts

Posts Tagged ‘ jQuery ’

Auto highlight text inside pre tags using jQuery

  • April 7th, 2010
  • Posted in Code

We use pre tags in the Polldaddy plugin to display the embed codes and short URLs. We use pre tags because it formats the text inside the tags as we insert it, which is ideal for displaying code in particular. The thing is, people like to copy this code and they have to go to [ READ MORE ]

Pages

  • About me…

Subscribe to this blog by email.

Top Rated

Content

aliases auto-select character set cookie cURL DOM storage encoding ExternalInterface Flash format xml HTTPS Authentication javascript jQuery Local Shared Objects LSO Mac OSX Microsoft SQL Server MySQL parse assignment value php plugin polldaddy polls Port forwarding pre tags PuTTY ratings regex regular expression revert revision rollback Service Broker SSH SVN terminal textwrangler tips UNIX Script UTF8 validate email validate url wordpress xkcd XML

Poll

Blog at WordPress.com. | Theme: Monochrome by mono-lab.