dotnet / dotnet/aspnetcore

Components.AI: Add extensible code-block rendering

Open
#68,428 0 comments 0 reactions 0 assignees View on GitHub
area-blazor cost: M feature-blazor-builtin-components Priority:1
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is your feature request related to a problem? Please describe the problem.

Rich responses need usable code blocks without forcing markdown or a syntax-highlighting package into the core library.

### Describe the solution you'd like

Render code blocks with language metadata, horizontal scrolling, a copy action, and a syntax-highlighting extension point. Clipboard behavior must degrade explicitly when unavailable.

### Additional context

Leaf task for #68227 requirement J4. Depends on the rich-node renderer and clipboard interop.

Contributor guide

Open the contributing guide

Research direction

Start with the rich-node renderer and clipboard interop referenced in the issue, then trace how Components.AI represents rich responses and code blocks. Done means code blocks expose language metadata, horizontal scrolling, copy behavior with an explicit unavailable-clipboard fallback, and an extension point for syntax highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.