Coder Social home page Coder Social logo

Comments (8)

Glennmen avatar Glennmen commented on July 24, 2024

Here you can find a list of domains where the extension will work on: https://github.com/zenorocha/codecopy/blob/master/dist/manifest.json

The codecopy module you used is not owned/maintained by this project, it is a community module. I think this is the correct Github repository: https://github.com/Kikobeats/codecopy

from codecopy.

htr3n avatar htr3n commented on July 24, 2024

@Glennmen many thanks.

from codecopy.

htr3n avatar htr3n commented on July 24, 2024

@zenorocha @Glennmen sorry I missed one point and would like to reopen this issue/question.

I mistook with codecopy.js but the second point is still valid i.e. I am using this add-on https://chrome.google.com/webstore/detail/codecopy/fkbfebkcoelajmhanocgppanfoojcdmg but could not find any "Copy" button for any snippets on the domain gist.github.com?

Google Chrome
Version 70.0.3538.110 (Official Build) (64-bit)
macOS Mojave 10.14.1.

from codecopy.

Glennmen avatar Glennmen commented on July 24, 2024

@htr3n Not sure if this issue is still open.
Can you show me an example where the extension is not working on gist.github.com

from codecopy.

htr3n avatar htr3n commented on July 24, 2024

@Glennmen sorry, I accidentally clicked on "close issue". I took some screenshots here. Note that the mouse are not in the screenshots but indeed I pointed it to the code (hopefully to activate CodeCopy)

codecopy-gist-1

codecopy-gist-2

In both cases, there are no "Copy" button? Or did I do something wrong for gist.github.com? In other domains like github.com or stackoverflow.com, the extension works perfectly ok.

from codecopy.

Glennmen avatar Glennmen commented on July 24, 2024

@htr3n Those are not code blocks so that is why the extension is not adding the Copy button. Not sure if it worked in the past and that Github changed their Gist layout and broke it.

This extension searches for the <pre> element to add the button to code blocks.

from codecopy.

htr3n avatar htr3n commented on July 24, 2024

@Glennmen That's my understanding too, i.e. both the extension and script (in other github repos) look for <pre> but Gists code is not (Gists are formatted in table). That's why I was a bit puzzled when reading the documentation that the extension works with Gists.
I guess this issue is no longer needed. Thanks

from codecopy.

Glennmen avatar Glennmen commented on July 24, 2024

@htr3n I am not sure if we will want to fix this because adding support for elements other than <pre> will of course create extra complexity into maintaining this project.

An other extension that might help you (and that I also use) is Refined GitHub

from codecopy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.