Skip to content

Displaying code inside a mobile app

Håvard Moås edited this page Dec 20, 2024 · 5 revisions

You might want to display code inside your mobile app for people to see. To do this, you can use our syntax highlighting components.

JsonViewer

To display Json content for people, use the <JsonViewer/>. This will display a web view with a javascript library for people to interact with.

Inspiration

highlight.js.

Usage

<dui:JsonViewer Json="{Binding MyJson" />

Properties

Inspect the components properties class to further customize and use it.

Clone this wiki locally