Skip to content

mreitm/monaco-editor-uwp

 
 

Repository files navigation

Monaco Editor UWP

A Windows Runtime Component wrapper around the web-based Monaco Editor. This allows the Monaco Editor to be more easily consumed directly in XAML for C# UWP based projects.

This project is not affiliated with the Monaco team and is provided for convenience. Please direct issues related to the use of this control wrapper to this repository.

This control is still in an early alpha state. Currently, every minor version change may signal breaking changes.

Supported Features

The following Monaco Editor features are currently supported by this component bridge:

  • Two-way Text Binding
  • Code Language for Syntax Highlighting
  • Stand Alone Code Editor Options
  • Markers and Decorations
  • Actions and Commands
  • Basic Language Support (Hover, CompletionItem, Snippets)
  • Basic IModel Support
  • KeyDown Events
  • Responds Appropriately to Programmatic Focus Events
  • Render Aware: Only displays once Loading is complete.

Usage

A NuGet Package is provided:

Install-Package Monaco.Editor -Version 0.8.1-alpha

Look at the TestApp for current usage. See changelog for more info.

Build Notes

Built using Visual Studio 2017 for Windows 10 14393 and above.

The released complete Monaco v0.13.0 build is used as a reference, this is not included in this repository and can be downloaded from the Monaco site. The contents of its uncompressed 'package' directory should be placed in the MonacoEditorComponent/monaco-editor directory. The install-dependencies.ps1 PowerShell script can install this for you automatically.

License

MIT

About

A Windows Runtime Component wrapper around the web-based Monaco Editor.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 94.0%
  • HTML 4.5%
  • PowerShell 1.5%