deviousasti / fsharp-highlighting

An fast, embeddable WPF control which displays F# Source Code with syntax highlighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FSharp.Highlighting

A WPF control which displays F# Source Code with syntax highlighting, for embedding within tools and extensions - so that you don't have to rely on heavyweight editor controls to display some source. That was a run-on sentence.

Usage

Embed Highlighter.fs.

In code, you can create a control instance with:

new FSharp.Highlighting.Highlighter(
	SourceText = "let x = 42"
)

or in XAML

<highlighting:Highlighter SourceText = "let x = 42" />

What it looks like

img

Dependencies

  • WindowsBase
  • FCS 38

About

An fast, embeddable WPF control which displays F# Source Code with syntax highlighting

License:MIT License


Languages

Language:F# 100.0%