CodeEditor Icon

CodeEditor

GitHub · CodeEditor Docs · CodeEditorFoundation Docs

_CodeEditor_ adds support for text and code editors to GNOME apps built using [Adwaita](https://github.com/AparokshaUI/Adwaita) (declarative) or [Libadwaita](https://github.com/AparokshaUI/Libadwaita) (imperative). ## Table of Contents - [Installation](#Installation) - [Usage](#Usage) - [Thanks](#Thanks) ## Installation ### Dependencies Install `gtksourceview-devel` or similar (based on the package manager) as well as `gtk4-devel` and `libadwaita-devel` (or similar). ### Swift Package 1. Open your Swift package in GNOME Builder, or any other IDE. 2. Open the `Package.swift` file. 3. Into the `Package` initializer, under `dependencies`, paste: ```swift .package(url: "https://github.com/AparokshaUI/CodeEditor", from: "0.1.0") ``` ## Usage Take a look at the simple [sample app](Tests/main.swift). If you prefer an imperative over a declarative coding style, import the `CodeEditorFoundation` instead. Check out the [Adwaita](https://github.com/AparokshaUI/Adwaita) (declarative) or [Libadwaita](https://github.com/AparokshaUI/Libadwaita) (imperative) packages. ## Thanks ### Dependencies - [Adwaita](https://github.com/AparokshaUI/Adwaita) licensed under the [GPL-3.0 license](https://github.com/AparokshaUI/Adwaita/blob/main/LICENSE.md) - [Libadwaita](https://github.com/AparokshaUI/Libadwaita) licensed under the [GPL-3.0 license](https://github.com/AparokshaUI/Libadwaita/blob/main/LICENSE.md) ### Other Thanks - The [contributors](Contributors.md) - [SwiftLint](https://github.com/realm/SwiftLint) for checking whether code style conventions are violated - The programming language [Swift](https://github.com/apple/swift) - [SourceDocs](https://github.com/SourceDocs/SourceDocs) used for generating the [docs](Documentation/Reference/README.md) - [GtkSourceView](https://gitlab.gnome.org/GNOME/gtksourceview/) for the widgets