A set of controls for displaying text formats like HTML on the Universal Windows Platform (UWP). Originally ported from the Disqus app for Windows.
A control for displaying basic HTML as a native UI.
Add a reference to the RichTextControls
namespace in your XAML file.
xmlns:richText="using:RichTextControls"
Now you can use the control in your xaml
<richText:HtmlTextBlock Html="<p>My <b>HTML</b> test</p>" />
This control was designed for simple HTML markup only (often returned as fragments from a web service), and won't evaluate any kind of styling. Complex HTML documents are better handled using a WebView.
A control for displaying code with basic syntax highlighting.
Add a reference to the RichTextControls
namespace in your XAML file.
xmlns:richText="using:RichTextControls"
Now you can use the control in your xaml
<richText:CodeHighlightedTextBlock HighlightLanguage="CSharp" Code="Console.WriteLine(999);" />
- C++
- C#
- CSS
- Java
- JavaScript
- JSON
- PHP
- Python
- Ruby
- SQL
- XML