Skip to content

Using the Monaco Editor in a browser without VSCode #446

Closed

Description

@Sevin777

Now that VS Code is open source, it also means that the Monaco Editor is open source (at-least to some extent).

I would really like to use this editor in my own web application for editing TypeScript files. The only problem is I can't find any documentation about how to do this. I know its possible because the editor is on TypeScript Playground and a few other places.

As far as I can tell, the open sourcing of VS Code is the first time the source code of the Monaco editor has been made public. Also, I think that the VS Code repository is the primary source of the Monaco editor (someone from Microsoft please confirm?).

So far, there have been many questions about using the Monaco Editor on Stack Overflow and other forums, but I have yet to see an official reply from Microsoft.

Can someone please provide some documentation on using the Monaco Editor in a web site, or perhaps release the source code of TypeScript Playground (There is nothing to hide now that we have the Monaco source in the VS Code repository).

Currently, the only thing keeping me from using TypeScript as a JavaScript replacement is the fact that I can't easily use the Monaco Editor inside of my web application. I'm currently using the ACE Editor with a Tern plugin I created. I don't want to go through all of the work of creating full Intellisense support for TypeScript inside of ACE because its a significant undertaking- Instead I'd rather contribute to the Monaco editor and use it as a replacement for ACE (and replace JavaScript with TypeScript).

Activity

  1. changed the title [-]Using the Monaco Editor without VSCode[/-] [+]Using the Monaco Editor in a browser without VSCode[/+] on Nov 22, 2015
  2. mackenza commented on Nov 22, 2015

    @mackenza

    +1 for this. Doing proper context code completion in CodeMirror and Ace is a nightmare. An open source editor that had good hooks to this kind of thing would be gold. We just need some docs on using it ;)

  3. added
    feature-request
    on Nov 22, 2015
  4. egamma commented on Nov 22, 2015

    @egamma
    Member

    sevin7676 you are correct that the Monaco editor is contained in the vscode repository and we are working on making the Monaco Editor more easy to consume independent of VS Code.

  5. lzantal commented on Nov 23, 2015

    @lzantal

    +1 making some docs on Monaco editor. So far this editor beats both codemirror and ace :)

  6. malekpour commented on Dec 15, 2015

    @malekpour

    This is almost same as #815

  7. bobzhang commented on Dec 27, 2015

    @bobzhang

    +1, the other options like codemirror or ace does not even come close compared with typescript playground

  8. pawsong commented on Dec 29, 2015

    @pawsong

    +1 Waiting for this!

  9. T18970237136 commented on Jan 22, 2016

    @T18970237136

    +1
    Any news on this? I'm waiting for this so I can embed the editor on our product's config page where the user can edit custom TypeScripts that are run on a server and provide our API definition.
    Thanks!

  10. egamma commented on Jan 22, 2016

    @egamma
    Member

    It is still on our backlog but it didn't make the cut for the GA milestone, sorry.

  11. 23 remaining items

  12. ups216 commented on Jun 3, 2016

    @ups216

    Erich Gamma (@egamma) Thanks a lot for your Q&A yesterday in Shanghai. I read the plan and looks like Monaco will be a separate repo? is this happening already? Can we have the URL?

    BTW: hope you had a great time in China :)

  13. basarat commented on Jun 3, 2016

    @basarat
    Contributor

    Lei Xu (@ups216) its been done https://www.npmjs.com/package/monaco-editor-core which is just shipped (pushed to npm) from this repository and I'm experimenting migrating alm to it as well alm-tools/alm#120 🌹

  14. jokeyrhyme commented on Jun 3, 2016

    @jokeyrhyme

    Basarat Ali Syed (@basarat) have you considered using something like https://github.com/lerna/lerna to help manage the mono-repo approach (single repo, multiple npm packages) ? Do you think there will be other goodies in VSCode that make sense to extract as separate npm packages?

  15. Sevin777 commented on Jun 16, 2016

    @Sevin777
    Author
  16. jonathanhotono commented on Jun 18, 2016

    @jonathanhotono

    +1 looking forward to get the full Javascript solution of vscode. This is exciting!

  17. maxdec commented on Jun 20, 2016

    @maxdec
  18. Sevin777 commented on Jun 20, 2016

    @Sevin777
    Author
  19. basarat commented on Jun 21, 2016

    @basarat
    Contributor

    Just made a release of alm that uses monaco : 0.1.0. Let me know how it goes 🌹

  20. jokeyrhyme commented on Jun 22, 2016

    @jokeyrhyme

    Will VSCode use this newly extracted Monaco? Will they be synchronised? Will they diverge?

  21. scottlu commented on Sep 29, 2016

    @scottlu

    GHEdit is a project that has "ported" large sections VSCode to run in a browser. If you have an interest in doing that here is the project page:

    https://github.com/spiffcode/ghedit

    It's targeted at editing, searching, and browsing Github repos. Live version:

    https://spiffcode.github.io/ghedit

  22. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions