What is the best way to display a syntax highlighted code block like this?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/SwiftUI

Our great sponsors
  • Glassfy - Build, manage, and grow in-app purchases and subscriptions
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Sourceful

    A syntax highlighting source editor for iOS and macOS using UITextView and NSTextView.

    This might be a good place to start.

  • Splash

    A fast, lightweight and flexible Swift syntax highlighter for blogs, tools and fun! (by JohnSundell)

    Splash for the syntax highlighting

  • Glassfy

    Build, manage, and grow in-app purchases and subscriptions. Glassfy open source SDK and backend enable you to integrate and remotely manage in-app subscriptions in just minutes, so you can focus on your app.

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