Code Monkey home page Code Monkey logo

Comments (7)

khoi avatar khoi commented on July 1, 2024

should be relative easy to do, can u submit a PR?

from codemirror-swift.

brendand avatar brendand commented on July 1, 2024

That's the thing, I'm not sure how you generated the set of files that you have. I tried installing from npm, but it brought in hundreds of packages and things. How did you generate the 44 items that are in your package? Did you grab it from their dev repo?

Sorry, I'm new to CodeMirror and I've spent hours trying to figure it out, but then kept getting compile errors and such, so I thought I'd ask to see if you could update the package.

Is this a project you're no longer working on? It's the only one that I could find for Swift that had CodeMirror 6 in it. All the others seem to use CodeMirror 5.

from codemirror-swift.

brendand avatar brendand commented on July 1, 2024

If you tell me what steps to do, I can submit a PR if you like.

Did you get the files from the CodeMirror dev repo? Or did you use npm install to get them? And how did you get just the modules that are in your version?

from codemirror-swift.

khoi avatar khoi commented on July 1, 2024

Hey @brendand

The subfolder https://github.com/khoi/codemirror-swift/tree/main/Sources/CodeMirror/src can be treated like a node project.

See package.json for all the modules I used, u can npm install or upgrade inside that folder

I think I was just following the instruction on https://codemirror.net/examples/bundle/

from codemirror-swift.

brendand avatar brendand commented on July 1, 2024

I actually did manage to find out that just by changing the version numbers in the package.json file would update them to the current versions. At the time I wrote my reply I had no idea how it was all put together. I'm still trying to enhance it to support dynamic font sizing and hopefully context aware snippets. Both are proving to be quite challenging.

from codemirror-swift.

khoi avatar khoi commented on July 1, 2024

Yeah, I'd play with codemirror in javascript first before thinking about porting it to Swift.

If there is something useful, please submit a PR, I'd highly appreciate it.

from codemirror-swift.

khoi avatar khoi commented on July 1, 2024

it's been updatedin 5edc929

from codemirror-swift.

Related Issues (6)

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.