Giter VIP home page Giter VIP logo

Comments (5)

wwwtyro avatar wwwtyro commented on June 13, 2024

@ibgreen I'll fix it. It turned out to be not a small fix; the current scheme points to a gist that is a script that inserts the already-formatted code snippet into the page. I think there's a couple options to fix this:

  1. Ask for the original code that performed the compiling to the gists and redo all the things.
  2. Just redo it.

I prefer option 2 because I'd like to 1) modernize the appearance of the lessons and 2) do away with the need to have another (possibly manual because of interacting with gist?) build step - I can build the functionality into a single common script shared across the lessons. I expect it to take a single evening, and we'd have a really nice-looking lesson interface at the end.

from philogl.

ibgreen avatar ibgreen commented on June 13, 2024

Just a question... Do we need to generate gists?Can't we just have the page load its source code using an Ajax request, just like it loads shaders and other resources? and Isn't there some npm 'code editor' component that formats JavaScript?

Alternatively, we could use github links to the files and embed in iframes?

from philogl.

ibgreen avatar ibgreen commented on June 13, 2024

http://stackoverflow.com/questions/1619167/textarea-that-can-do-syntax-highlighting-on-the-fly

from philogl.

wwwtyro avatar wwwtyro commented on June 13, 2024

That's exactly what I was thinking! 👍 Great, I'll do number 2 then. ;)

from philogl.

wwwtyro avatar wwwtyro commented on June 13, 2024

#45

from philogl.

Related Issues (15)

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.