Highlighted code blocks inside the app (#1153)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 07:58:57 +01:00
1 parent 0b42c0288e
commit f4a86c2fb8
60 files changed
+2550 -41

No files matched your search

@@ -0,0 +1,9 @@
namespace AIStudio.Tools.CodeHighlighting;
/// <summary>
/// A part of a code block which gets a color of its own.
/// </summary>
/// <param name="Start">Where the part starts in the code.</param>
/// <param name="Length">How many characters the part spans.</param>
/// <param name="Kind">What the part is.</param>
public readonly record struct CodeToken(int Start, int Length, CodeTokenKind Kind);