Replies: 6 comments
-
|
In fact it is an excellent idea. But, not a new control. A new markup tag [markdown].........[/]. It will fit all controls that can render markup syntax, which are actually all the controls! |
Beta Was this translation helpful? Give feedback.
-
|
@nickprotop Lol~ Looks like the tokens are getting burned up~ Can't wait for the next release! |
Beta Was this translation helpful? Give feedback.
-
|
@nickprotop Also, could we prioritize support for syntax highlighting of bash, text and code in Markdown code blocks? Let's keep it simple. |
Beta Was this translation helpful? Give feedback.
-
|
Tell me about it! But the trick kept it cheap: one |
Beta Was this translation helpful? Give feedback.
-
|
Shipped in SharpConsoleUI 2.4.77. There's no var control = new MarkupControl(new List<string>
{
"[bold yellow]System Report[/]",
"[green]●[/] all services healthy",
"[markdown]",
"## Details",
"",
"- **CPU:** 12%",
"- **Memory:** 4.2 GB",
"",
"```bash",
"systemctl status api # running",
"```",
"[/]"
});The first two lines use native markup; everything inside Because the tag lives in the markup parser, any control that renders markup understands it — buttons, list items, tree nodes, table cells, tab headers, the status bar, and so on. Multi-line blocks (tables, code blocks, lists) need a multi-line host like What's in:
Docs: Fun fact: the syntax highlighters come straight from LazyDotIDE, a terminal .NET IDE built on SharpConsoleUI — they're now built into the library so any app can use them. Honestly, thank you for this. Between the bug reports and the ideas you've been sending, you're genuinely helping shape where SharpConsoleUI is going — this whole feature started as one of your suggestions. Much appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
@nickprotop Wow, great to see this feature live! 🎉 It's my pleasure to help out. I really love this project, so I'm happy to share my thoughts whenever I have any. Keep up the amazing work! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@nickprotop I'm thinking whether it would be useful to introduce a
MarkdownControl.My expectation is that this control can automatically render content in Markdown format.
It should inherit all features from
MarkupControl. Depending on the configuration, it will automatically format and display H1 ~ H6 headings, lists, bold text, italic text, tables and code blocks. Other complex Markdown syntax may not be required.Besides, content copied from this control should stay as plain text.
This is just a rough idea, and I hope you can consider it! 😄
Hope I'm not giving you extra work again haha.
Beta Was this translation helpful? Give feedback.
All reactions