mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 19: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,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,
|
||||
}
|
||||
Reference in new issue
Block a user