Prism seems to work but I can not copy the code
See original GitHub issueI’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:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the issue is caused somehow by these two rules in the CSS.
@Golmote @mAAdhaTTah Okay, thanks for the info. You can close this.