private string[] _decorationIds;
async Task ApplyDecoration(StandaloneCodeEditor editor)
{
var newDecorations = new[]
{
new ModelDeltaDecoration
{
Range = new BlazorMonaco.Range(1, 1, 2, 10),
Options = new ModelDecorationOptions
{
ClassName = "yellow-decoration",
IsWholeLine = true
}
}
};
_decorationIds = await editor.DeltaDecorations(_decorationIds, newDecorations);
}