-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
WebsitehasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Description
Currently when you double click on a bash code block, the $ is also selected.
By using the following jQuery snippet we can add a no-select to it to prevent it from being selected.
$(".highlight-bash pre span.nv:contains('$ ')").css('userSelect', 'none')
:contains
seemed to suffice, maybe check if the element exactly contains the text to be 100% sure.
Could we add something like this to the symfony docs pages? It would make copy and paste that little bit easier. 😀 #lazy-programmer
This prevents the following when copy and pasting:
> $ composer require friendsofsymfony/user-bundle "~2.0@dev"
bash: $: command not found
👍
fsevestreogizanagi, javiereguiluz and chalasr
Metadata
Metadata
Assignees
Labels
WebsitehasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.