{"id":43109128,"url":"https://github.com/lk-code/winui.monaco-editor","last_synced_at":"2026-01-31T18:18:10.612Z","repository":{"id":92761250,"uuid":"538235685","full_name":"lk-code/winui.monaco-editor","owner":"lk-code","description":"The Monaco Editor for WinUI 3","archived":false,"fork":false,"pushed_at":"2025-10-03T23:00:59.000Z","size":72015,"stargazers_count":21,"open_issues_count":13,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T21:23:26.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lk-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"lk-code","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-09-18T20:41:26.000Z","updated_at":"2025-10-03T23:23:03.000Z","dependencies_parsed_at":"2024-06-04T21:12:50.534Z","dependency_job_id":"4d1647a8-5fed-4124-be27-45b0742ea0bb","html_url":"https://github.com/lk-code/winui.monaco-editor","commit_stats":null,"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/lk-code/winui.monaco-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk-code%2Fwinui.monaco-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk-code%2Fwinui.monaco-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk-code%2Fwinui.monaco-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk-code%2Fwinui.monaco-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lk-code","download_url":"https://codeload.github.com/lk-code/winui.monaco-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk-code%2Fwinui.monaco-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-31T18:18:10.160Z","updated_at":"2026-01-31T18:18:10.607Z","avatar_url":"https://github.com/lk-code.png","language":"JavaScript","funding_links":["https://github.com/sponsors/lk-code","https://www.buymeacoffee.com/lk.code"],"categories":[],"sub_categories":[],"readme":"# WinUI.Monaco-Editor\n\n![WinUI.Monaco-Editor](https://raw.githubusercontent.com/lk-code/winui.monaco-editor/main/icon_128.png)\n\n[![.NET Version](https://img.shields.io/badge/dotnet%20version-net6.0-blue?style=flat-square)](http://www.nuget.org/packages/WinUI.Monaco)\n[![License](https://img.shields.io/github/license/lk-code/winui.monaco-editor.svg?style=flat-square)](https://github.com/lk-code/winui.monaco-editor/blob/master/LICENSE)\n[![Downloads](https://img.shields.io/nuget/dt/WinUI.Monaco.svg?style=flat-square)](http://www.nuget.org/packages/WinUI.Monaco)\n[![NuGet](https://img.shields.io/nuget/v/WinUI.Monaco.svg?style=flat-square)](http://nuget.org/packages/WinUI.Monaco)\n\n[![buy me a coffe](https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png)](https://www.buymeacoffee.com/lk.code)\n\n## Introduction\n\nThe [Monaco Editor](https://github.com/microsoft/monaco-editor) (Visual Studio Code) as UI Control for WinUI 3.0\n\n**Notice:** As part of a project restructuring, the NuGet name of the library was changed from `winui.monaco-editor` to `WinUI.Monaco`.\n\n## Install Monaco in a WinUI 3.0 Project\n\n```\ndotnet add package WinUI.Monaco\n```\n\n### WinUI.Monaco Version\n\nThe library version is composed as follows:\n\n* the current project version\n* the used Monaco Editor version\n* the GitHub RunNumber of the build\n\n`1.1.${{ env.MONACO_VERSION }}.${{ github.run_number }}` (example: `1.1.44.13`)\n\n## Handler\n\nThis Monaco control uses handlers to provide certain actions that have nothing directly to do with the actual Monaco editor:\n\n### MonacoWebViewDevToolsHandler\n\nThis handler can be used to open the WebView2 DevTools.\n\n```\nMonacoWebViewDevToolsHandler handler = this.MonacoEditor.GetHandler\u003cMonacoWebViewDevToolsHandler\u003e();\n\nhandler.OpenDebugWebViewDeveloperTools();\n```\n\n### MonacoFileRecognitionHandler\n\nWith this handler you can pass a file extension and get back the code language supported by the Monaco Editor, which can then be set in the Monaco Editor.\n\n```\nMonacoFileRecognitionHandler handler = this.MonacoEditor.GetHandler\u003cMonacoFileRecognitionHandler\u003e();\n\nstring fileCodeLanguage = handler.RecognizeLanguageByFileType(Path.GetExtension(file.Path));\nawait this.MonacoEditor.SetLanguageAsync(fileCodeLanguage);\n```\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=lk-code/winui.monaco-editor)](https://github.com/lk-code/winui.monaco-editor/graphs/contributors)\n\n## Development\n\n### Update the Monaco Version\n\nThe monaco project is stored in the C#-Project Monaco under the folder `monaco-editor`.\n\nTo update the monaco version follow these steps ***(Only do this if it is really necessary. The project is always automatically updated to the latest release version of the monaco project via a GitHub workflow)***:\n\n1. download the latest version from [Microsoft Monaco Project](https://microsoft.github.io/monaco-editor/)\n2. extract the archive file\n3. delete all files except for `index.html` from the folder `monaco-editor`. The `index.html` is **required** for the project\n4. copy all new files from the extracted archive to the folder `monaco-editor`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flk-code%2Fwinui.monaco-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flk-code%2Fwinui.monaco-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flk-code%2Fwinui.monaco-editor/lists"}