mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 06:27:21 +00:00
Highlighted code blocks inside the app (#1153)
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user