question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prism seems to work but I can not copy the code

See original GitHub issue

I’m injecting prismjs in my Ghost blog.

Blog header:

<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/themes/prism-okaidia.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/plugins/line-numbers/prism-line-numbers.min.css" rel="stylesheet" />

Blog footer:

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/prism.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/plugins/line-numbers/prism-line-numbers.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/components/prism-csharp.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/components/prism-php.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/components/prism-bash.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.10.0/components/prism-yaml.min.js" ></script>

The prism is highlighting and the colors are fine. But the problem is I can not copy the code. It seems to be like an image. It’s in every browser. I’m using this theme.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Golmotecommented, Feb 5, 2018

I think the issue is caused somehow by these two rules in the CSS.

8b0gswu

0reactions
MaxCCCcommented, Feb 5, 2018

@Golmote @mAAdhaTTah Okay, thanks for the info. You can close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting copying and pasting graphs from Prism into ...
Go to the File & Printer tab of Prism's preference dialog, and change the format used to paste the graph to the clipboard...
Read more >
Current Prism version breaks "Copy to Clipboard Button ...
The copy button worked with an older version of Prism (1.22.0) that was downloaded some time ago from the same URL. IMHO, this...
Read more >
Pasting in Excel: not working properly - Microsoft Community
Most of the times, when I copy something from Graphpad Prism - data in a table format and past it in excel, it...
Read more >
What is the correct way to manage module dependencies ...
Open the solution properties and go to the Project Dependencies page. ... that need to be compiled / copied in the output directory....
Read more >
Error with 'copy paste worksheet' in Control Room | Blue Prism ...
Hello, everyone! I need to get a sheet from one Excel file and copy it to a specific range on another Excel file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found