Skip to content

Controls for rendering HTML and Syntax-highlighted code in UWP apps

License

Notifications You must be signed in to change notification settings

Vinayaka-Hebbar/UWP-RichTextControls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

UWP-RichTextControls

A set of controls for displaying text formats like HTML on the Universal Windows Platform (UWP). Originally ported from the Disqus app for Windows.

Controls

HtmlTextBlock

A control for displaying basic HTML as a native UI.

HtmlTextBlock screenshot

Basic Usage

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>" />

Limitations

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.

CodeHighlightedTextBlock

A control for displaying code with basic syntax highlighting.

CodeHighlightedTextBlock screenshot

Basic Usage

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);"  />

Supported Languages

  • C++
  • C#
  • CSS
  • Java
  • JavaScript
  • JSON
  • PHP
  • Python
  • Ruby
  • SQL
  • XML

About

Controls for rendering HTML and Syntax-highlighted code in UWP apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.1%
  • Java 2.3%
  • Ruby 1.7%
  • HTML 1.0%
  • PHP 0.9%
  • CSS 0.5%
  • Other 0.5%