CodeBlock - Live Examples

Normal state

PlayerData.cs
public sealed class PlayerData
{
    public Guid Id { get; init; }
    public string DisplayName { get; init; } = string.Empty;
    public int Level { get; init; }
    public IReadOnlyList<string> Roles { get; init; } = Array.Empty<string>();
}

Realistic data example

project-data.json
{
  "organization": "Northwind Studio",
  "project": "Arena Forge",
  "players": [
    { "displayName": "Ada", "level": 42, "roles": [ "Designer", "Admin" ] },
    { "displayName": "Lin", "level": 18, "roles": [ "Tester" ] }
  ]
}

Dark theme

ProjectCard.cshtml
<section class="project-card">
    <h2>Arena Forge</h2>
    <p>Shared data for the active studio project.</p>
</section>

Empty state

Empty source
No source code was provided for this example.

Error state

BrokenExample.cs
The snippet could not be rendered because the source metadata is invalid.

Highlight disabled

terminal
dotnet run --project labs_idemobi_com