Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to make my own code editor?

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #187625
    RickyYoder
    Participant

    I had a great idea for a code editing application. Don’t want to give all the details, but I’d LOVE to make an editor from scratch and not use something like Ace. I’m a rebel, plus I’d love to learn. I also love to make things from scratch.

    Are there any tutorials on how to make a code editor with syntax highlighting and tabbing with HTML+CSS+JS from the ground up?

    #187674
    nixnerd
    Participant

    You want to build a web-based code editor? Or a desktop application? The latter will require you to learn C.

    #187690
    RickyYoder
    Participant

    I want a web based code editor. I wonder how Ace does it…

    #187694
    nixnerd
    Participant

    I wonder how Ace does it…

    There’s no real secret my man. It’s HTML + CSS + JS + Some back-end language + database for data persistence like everything else.

    I’d just like to throw out that this is a HUGE undertaking. Ask @chriscoyier what went into building CodePen. I’m sure it was super difficult. But… that doesn’t mean you SHOULDN’T do it. Just that you should count the cost.

    I saw some folks in Design Den messing around with Code Editor UI a few weeks ago. Maybe look there for some pointers. Then… the real work begins.

    #187702
    Chris Coyier
    Keymaster

    It’s open source, so dig in!

    We use http://codemirror.net/

    #187710
    nixnerd
    Participant

    Wow. Didn’t see that coming. I guess you learn something new everyday! I would strongly suggest you take a look at the Codepen source. IMHO, it’s the best web-based code editing experience out there. Period.

    #187851
    RickyYoder
    Participant

    Thanks everybody. But like I said, I kind of am a rebel, and I’m really interested in learning my own way for things, to enlighten myself and better myself.
    Now I did take a look at the source code for Ace, and it seems a lot more complex than what I have started.

    I’m having an issue with the syntax highlighting/cursor, however, and I made a separate topic on it.

    Here’s the editor so far…a bit buggy but you can type in some HTML.

    #195256
    mrwebi
    Participant

    I also found: http://fadul.net/code-editor/default.php Online Code Editor It’s also built in CodeMirror. It has many features. @chriscoyier also has codepen.io which is superb.

    #250953

    Here is the code of online live html editor

    https://github.com/abhay-s/Cheter

    You may check it on https://abhay-s.github.io/cheter/

    #261924
    Shubham vyas
    Participant
    #275913
    Binyamin Green
    Participant

    @rickyyoder Take a look at this. Apparently, Someone built a very simple code editor using monaco, a web based tool like code-mirror. He used electron, to make it a desktop app.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Other’ is closed to new topics and replies.