Blazor.Monaco 0.0.3-alpha

This is a prerelease version of Blazor.Monaco.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Blazor.Monaco --version 0.0.3-alpha                
NuGet\Install-Package Blazor.Monaco -Version 0.0.3-alpha                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor.Monaco" Version="0.0.3-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blazor.Monaco --version 0.0.3-alpha                
#r "nuget: Blazor.Monaco, 0.0.3-alpha"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blazor.Monaco as a Cake Addin
#addin nuget:?package=Blazor.Monaco&version=0.0.3-alpha&prerelease

// Install Blazor.Monaco as a Cake Tool
#tool nuget:?package=Blazor.Monaco&version=0.0.3-alpha&prerelease                

Monaco Editor for Blazor components

License: MIT .NET C#

This package is for use in .NET 9 Blazor projects.

Introduction

The Blazor.Monaco package provides a Blazor component which adds the Monaco Editor to your Blazor pages. This is the same engine that powers VS Code. The package handles adding all the required components to your site and the interaction between your C# and JavaScript.

Setup

To install, add one line to your program.cs:

builder.Services.AddBlazorMonacoComponents();

To add to your page, simply add:

<MonacoEditor 
    ElementId="editor-id" 
    Language="Language.JavaScript" 
    ScriptContent="@MyScript"/>
@code {
    private string MyScript { get; set; } = string.Empty;
}    

If the ScriptContent is null or empty, it will print add example text, relevant to the language.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0 115 11/30/2024
0.0.5-alpha 70 11/29/2024
0.0.4-alpha 73 11/29/2024
0.0.3-alpha 81 11/29/2024
0.0.2-alpha 77 11/28/2024