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,11 @@
namespace AIStudio.Tools.CodeHighlighting;
/// <summary>
/// Something which hints at a language when it appears in a code block, such as using System; for C#.
/// </summary>
/// <param name="Text">What has to appear.</param>
/// <param name="Place">Where it has to appear.</param>
/// <param name="Weight">How strongly it hints at the language: 4 alone suffices, as only this language
/// writes it so; 1 hints only together with others.</param>
/// <param name="IgnoreCase">Whether it matches in any case, as the keywords of SQL do.</param>
public sealed record CodeLanguageMarker(string Text, CodeMarkerPlace Place, int Weight, bool IgnoreCase = false);