jquery / jquery-wp-content

WordPress themes and plugins for the jQuery sites
GNU General Public License v2.0
253 stars 169 forks source link

jquery: Make code-listing line numbers unselectable #436

Closed ferdnyc closed 1 year ago

ferdnyc commented 1 year ago

This PR uses the well-supported1 user-select: none CSS property on the line number gutter in syntaxhighlighter code blocks, to prevent accidental inclusion when copy-pasting the contained code.

Notes

  1. while user-select: none has broad browser support, both Safari versions do require its use as the vendor-prefixed -webkit-user-select (also included in the PR changes).

(CLA Note: As I mentioned in jquery/contribute.jquery.org#149, the CLA links across the documentation are currently linking to an OpenJSF page with no CLA in evidence. I have not signed the CLA simply because I can't find any way to sign it.) Never mind, the bot's link worked.

linux-foundation-easycla[bot] commented 1 year ago

CLA Signed

The committers listed above are authorized under a signed CLA.