CodeView
CodeView displays source code inside a WebView-based syntax highlighter.
Getting Started
Install the package:
dotnet add package UraniumUI.WebComponents
Register it in MauiProgram.cs:
builder
.UseMauiApp<App>()
.UseUraniumUI()
.UseUraniumUIWebComponents();
Usage
CodeView is exported through the UraniumUI XAML namespace.
xmlns:uranium="http://schemas.enisn-projects.io/dotnet/maui/uraniumui"
<uranium:CodeView
Language="csharp"
SourceCode="public string Message => \"Hello\";"
HeightRequest="160" />
Properties
SourceCode: The code to render.Language: The syntax highlighting language.Theme: The highlight theme. By default it usesgithubin light theme andgithub-darkin dark theme.