AvalonEdit is the WPF-based text editor used in SharpDevelop.
$ dotnet add package AvalonEditCheck out the official documentation and the samples and articles wiki page
Make sure to try the AvalonEdit sample application in the repository - its project has additional documentation included.
OSS projects using AvalonEdit are listed on the repository main page.