How should i go about making a library to color code (syntax highlighting) a user has written?

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AvalonEdit

    The WPF-based text editor component used in SharpDevelop

  • For the most part it's best to just use something like AvalonEdit that already implements it for you. There's some documentation and if you dig a long time ago there was a book about how it was made (along with SharpDevelop) that may still be findable.

  • FastColoredTextBox

    Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.

  • You can check on GitHub for some projects that have done the same, something like https://github.com/PavelTorgashov/FastColoredTextBox

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • language-server-protocol

    Defines a common protocol for language servers.

  • PrismJS

    Lightweight, robust, elegant syntax highlighting.

  • Or this one for csharp which is more complex https://github.com/PrismJS/prism/blob/master/components/prism-csharp.js

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts