CodeMirror Swift alternatives and similar libraries
Based on the "Text" category.
Alternatively, view CodeMirror Swift alternatives based on common mentions on social networks and blogs.
-
YYText
Powerful text framework for iOS to display and edit rich text. -
Nimbus
The iOS framework that grows only as fast as its documentation -
PhoneNumberKit
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber. -
ZSSRichTextEditor
A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view -
Twitter Text Obj
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform. -
FontAwesomeKit
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. -
SwiftRichString
π©βπ¨ Elegant Attributed String composition in Swift sauce -
libPhoneNumber-iOS
iOS port from libphonenumber (Google's phone number handling library) -
TwitterTextEditor
A standalone, flexible API that provides a full-featured rich text editor for iOS applications. -
Down
Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark. -
RichEditorView
RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing. -
TextAttributes
An easier way to compose attributed strings -
FontAwesome.swift
Use FontAwesome in your Swift projects -
SwiftyMarkdown
Converts Markdown files and strings into NSAttributedStrings with lots of customisation options. -
SwiftString
A comprehensive, lightweight string extension for Swift -
Iconic
:art: Auto-generated icon font library for iOS, watchOS and tvOS -
SwiftyAttributes
A Swifty API for attributed strings -
MMMarkdown
An Objective-C framework for converting Markdown to HTML. -
Atributika
Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement. -
CocoaMarkdown
Markdown parsing and rendering for iOS and OS X -
SwiftIconFont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon) -
FontBlaster
Programmatically load custom fonts into your iOS, macOS and tvOS app. -
Notepad
[iOS] A fully themeable markdown editor with live syntax highlighting. -
MarkdownKit
A simple and customizable Markdown Parser for Swift -
Font-Awesome-Swift
Font Awesome swift library for iOS. -
fuse-swift
A lightweight fuzzy-search library, with zero dependencies -
FormatterKit
stringWithFormat: for the sophisticated hacker set -
AztecEditor-iOS
A reusable native iOS visual HTML text editor component. -
NSStringEmojize
A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters -
MarkdownTextView
Rich Markdown editing control for iOS -
Guitar
A Cross-Platform String and Regular Expression Library written in Swift. -
Mustard
π Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it. -
Translucid
Lightweight library to set an Image as text background. Written in swift. -
GoogleMaterialDesignIcons
Google Material Design Icons Font for iOS -
Heimdall
Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. -
AttributedTextView
Easiest way to create an attributed UITextView (with support for multiple links and from html)
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CodeMirror Swift or a related project?
README
CodeMirror-Swift is a lightweight wrapper of CodeMirror for macOS and iOS.
Features
- π Lightweight CodeMirror wrapper (build 5.52.2)
- β 100% Native Swift 5 and modern WKWebView
- π Support iOS & macOS
- π§ Built-in addons
- π Customizable (Addon, Themes, Modes...)
- π Dozen built-in themes and syntax highlight modes
- β‘οΈ Ready to go
Apps that uses CodeMirror-Swift
Modern and Delightful HTTP Debugging Proxy for macOS, iOS and Android β‘οΈ β’ π https://proxyman.io
Installation
SPM
The easiest way to use this package is to add https://github.com/ProxymanApp/CodeMirror-Swift
to your SPM dependency.
Manually
- Manually copy
CodeMirrorWebView.swift
andCodeMirrorView.bundle
to your project. - Customize to fit your need on
index.html
- Set
mode
andContent
swift let url = Bundle.main.url(forResource: "data", withExtension: "json")! let content = try! String(contentsOf: url) codeMirrorView.setMimeType("application/json") codeMirrorView.setContent(content)
Example
- Run
./examples/CodeMirror-Swift-Example.xcodeproj
How to use addons?
- Read CodeMirror Documentation
- Enable your plugins in
index.html
How to add new themes?
- Download CodeMirrror themes and put it on the folder
Sources/CodeMirrorView.bundle/Contents/Resources/theme
- Load your theme in
index.html
- Change by using
codeMirrorView.setThemeName("material.css")
Credit
- CodeMirror: https://codemirror.net
- CodeMirror-minified: https://www.npmjs.com/package/codemirror-minified
- Pierre-Olivier Latour: https://github.com/swisspol/CodeMirrorView
License
CodeMirror-Swift is copyright 2020 Proxyman and available under MIT license. See the LICENSE file in the project for more information.
*Note that all licence references and agreements mentioned in the CodeMirror Swift README section above
are relevant to that project's source code only.