Skip to content

verticalsoftware/spectre-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vertical-spectreviewer

A pageable content viewer that uses spectre console for rendering.

Quick setup

Install:

> dotnet package add vertical-spectreview --preelease

Call one of the methods on the SpectreViewer class with content you would normally send to SpectreConsole. The example below provides content from a file.

// Renders markup found in a file
SpectreViewer.MarkupWithPaging(File.OpenRead("marked-up.txt"));

The utility will display the content of the string or stream and let the user page through using PageUp and PageDown keys.

A note on input

Recall spectre console markup - [gold]...[/], etc. If you want to use brackets in the rendered content, be sure to properly escape them (e.g. [[ my-escaped-content ]]).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published