Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

AuroraEditor/AuroraEditorTextView

Aurora Editor Sunset Announcement

After much thought and consideration, we have decided to officially sunset Aurora Editor.
Aurora started as a community-driven effort to build a fast, lightweight, and truly native IDE for macOS developers. It grew out of passion, collaboration, and a shared vision for an open alternative. Along the way, contributors poured in their time, energy, and creativity to shape what Aurora became.
But as with all projects, there comes a time to reflect on sustainability and focus. With limited resources, shifting priorities, and new tools emerging in the developer ecosystem, we believe it’s the right moment to bring Aurora Editor’s journey to a graceful close.
The code will remain available on GitHub for anyone who wishes to explore, fork, or continue the vision in new directions. We deeply appreciate everyone who wrote code, opened issues, shared feedback, or simply used Aurora in their daily work-you kept the project alive and meaningful.
Thank you for being part of Aurora’s story!
Even though Aurora Editor is setting, the light it inspired will live on in the community.

— The Aurora Editor Team (@0xWDG & @nanashili).


AuroraEditorTextView

AuroraEditorTextView is a powerful text editor library for displaying and editing code documents in Swift. It provides a fast and efficient text view component that can handle large documents with ease. With customization options and support for syntax highlighting, AuroraEditorTextView is ideal for building code editors and IDEs.

Important

AuroraEditorTextView is designed for specific use cases where a specialized text view for displaying and editing lines of text is needed. It may not have feature parity with the system text view or support complex text layouts. If you require more advanced text editing capabilities or need to handle right-to-left text or custom layout elements, consider using alternatives like STTextView or NSTextView. For editing source code with features like indentation and syntax highlighting, check out the parent library AuroraEditorSourceEditor.

Features

  • Fast initial layout and rendering of large documents
  • Basic text editing capabilities
  • Customization options for code documents
  • Support for syntax highlighting using styled strings
  • Lightweight and performant

Usage

Import the AuroraEditorTextView module in your Swift code:

import AuroraEditorTextView

Create an instance of TextView and configure it with the desired options:

let textView = TextView(
    string: "func helloWorld() {\n\tprint(\"hello world\")\n}",
    font: NSFont.systemFont(ofSize: 14),
    textColor: NSColor.textColor,
    lineHeightMultiplier: 1.0,
    wrapLines: true,
    isEditable: true,
    isSelectable: true,
    letterSpacing: 1.0,
    delegate: self
)

Embed the TextView in a scroll view or use it standalone:

let scrollView = NSScrollView()
scrollView.documentView = textView

Implement the TextViewDelegate protocol to handle events and customize the behavior of the text view. For more detailed usage instructions and examples, please refer to the documentation.

Contributing

Contributions to AuroraEditorTextView are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request on the GitHub repository.

License

Licensed under the MIT license.

Releases

No releases published

Sponsor this project

  •  

Contributors 2

  •  
  •