Re: Exercism launch really really soon

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

Looks like they already have a few custom codemirror (and highlightjs) repositories.

I just took a closer look at codemirror and have to say I'm seriously under-impressed. I'm not phased one bit by the nitty-gritty language-specific changes, it's the overall thing. Besides, the results are not exactly stunning, at best barely passable (hjs is at least 700 times better than cm). I kinda realised there is no quickstart guide for one very good reason: there is no quickstart. I finally found this in the midst of all the arrogant codswallop:

https://codemirror.net/docs/guide/ said...

The packages are distributed as ES6 modules. This means that it is not currently practical to run the library without some kind of bundler (which packages up a modular program into a single big JavaScript file) or module loader.

And that completely puts the kibosh on the whole adventure. Unless someone else can somehow take one of those custom exercism/codemirror components and put together a basic edit-run package I can actually run locally.
(the elixir one is both the simplest and has the largest number of similar packages I could perhaps crib bits 'n pieces from, but I'd take either of the other two if that's any easier or perhaps more precisely actually possible.)

PS: I can actually run cm5, but exercism has just "upgraded" (hah!) to cm6, so that's not going to fly, is it?
PPS: A couple of months ago I managed to publish my hjs effort to npm, but it took me over a year to figure out how. Just so you know.

Update: OK, after hitting a quite ludicrous number of dead ends, I finally managed to squeeze a tiny bit of one of my little toes in the door, but I'm still completely stumped, and have asked for some help on SO: https://stackoverflow.com/questions/78455889/develop-a-codemirror6-language-pack-basic-setup-steps - and it's already been downvoted twice.

UPDATE: I've completely given up on cm6, but implemented a cm5 language mode, demo here: http://phix.x10.mx/cm5/test.htm (and no, I didn't pick those colours/that theme, but it's the one used on exercism, at least for us lucky insiders in dark mode.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu