[HN Gopher] CodeMirror: Extensible code editor component for the...
       ___________________________________________________________________
        
       CodeMirror: Extensible code editor component for the web
        
       Author : kaycebasques
       Score  : 29 points
       Date   : 2024-07-11 20:13 UTC (2 hours ago)
        
 (HTM) web link (codemirror.net)
 (TXT) w3m dump (codemirror.net)
        
       | kaycebasques wrote:
       | CodeMirror is one of those workhorse projects that many people
       | here have probably used many times but may not know by name. It
       | powered the Chrome DevTools Console for many years for example.
       | (It seems like the Console may still be powered by CodeMirror but
       | I'm not familiar with that codebase anymore.)
        
         | bhl wrote:
         | DevTools is open-source!
         | 
         | https://github.com/ChromeDevTools/devtools-frontend/blob/mai...
        
           | kaycebasques wrote:
           | Yes I was poking around earlier today to try and confirm
           | whether the Console is still using CodeMirror. I saw a couple
           | instances of the name but didn't want to overstep my bounds
           | and make an inaccurate statement.
        
       | epolanski wrote:
       | I have always looked for something basic, mobile friendy that
       | would support TypeScript types on hover.
       | 
       | Monaco would be okay, if not for mobile..
        
         | bhl wrote:
         | Checkout this discussion
         | 
         | https://discuss.codemirror.net/t/codemirror-6-and-typescript...
         | 
         | or this package
         | 
         | https://github.com/val-town/codemirror-ts
        
       | FjordWarden wrote:
       | One of my favourite JS projects to read, the module system is
       | very well designed while at the same time it has those bit-
       | shifting gems like splitting a 32bit number into an index and an
       | offset to avoid allocating an extra object for that.
        
       | AlexErrant wrote:
       | I've been using CodeMirror+Lezer to write a custom query language
       | similar to GitHub's (somerepo stars:>100). It's been great
       | (though unfortunately time-consuming), and Marijn's been
       | incredibly responsive/helpful on the "discuss" forum (as long as
       | your question puts in a modicum of effort, hah). He's merged some
       | PRs I've made, and treated many discussions as feature requests
       | and implemented them.
        
       | joatmon-snoo wrote:
       | CodeMirror's been fantastic for us: as folks building a
       | programming language, we wanted a way to create a playground for
       | people to try it out (much like what Goland and Rust did), and we
       | found CodeMirror super helpful for putting together
       | https://www.promptfiddle.com/
       | 
       | It did help that we wrote our compiler in Rust and were able to
       | transpile it to WASM :)
        
       ___________________________________________________________________
       (page generated 2024-07-11 23:01 UTC)