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,32 @@
namespace AIStudio.Tools.CodeHighlighting;
/// <summary>
/// Where a marker of a language has to appear in a code block, see CodeLanguageMarker.
/// </summary>
public enum CodeMarkerPlace
{
/// <summary>
/// Anywhere in the code, also across a line break.
/// </summary>
ANYWHERE,
/// <summary>
/// At the start of a line, after its indentation.
/// </summary>
LINE_START,
/// <summary>
/// At the end of a line, before any space behind it.
/// </summary>
LINE_END,
/// <summary>
/// As a line of its own, apart from its indentation, such as the fi of a shell script.
/// </summary>
WHOLE_LINE,
/// <summary>
/// At the start of the first line which is not empty, such as a shebang.
/// </summary>
FIRST_LINE,
}