Popularity
1.5
Growing
Activity
2.9
-
46
3
6

Programming language: JavaScript
License: MIT License
Tags: Text    

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.

Do you think we are missing an alternative of CodeMirror Swift or a related project?

Add another 'Text' Library

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

How to use?

  1. Manually integrate CodeMirrorWebView.swift and CodeMirrorView.bundle to your project.
  2. Customize to fit your need on index.html
  3. Set mode and Content 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 CodeMirror-Swift-Example.xcodeproj

How to use addons?

  1. Read CodeMirror Documentation
  2. Enable your plugins in index.html

How to add new themes?

  1. Download CodeMirrror themes and put it on the folder src/CodeMirrorView.bundle/Contents/Resources/theme
  2. Load your theme in index.html
  3. Change by using codeMirrorView.setThemeName("material.css")

Credit

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.