All Projects → ProxymanApp → CodeMirror-Swift

ProxymanApp / CodeMirror-Swift

Licence: MIT license
CodeMirror-Swift is a lightweight wrapper of CodeMirror for macOS and iOS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to CodeMirror-Swift

ExtendScript-for-Visual-Studio-Code
Extension that adds Adobe ExtendScript support to Visual Studio Code
Stars: ✭ 29 (-59.15%)
Mutual labels:  syntax-highlighter
codemirror-promql
PromQL support for the CodeMirror code editor
Stars: ✭ 35 (-50.7%)
Mutual labels:  codemirror
codemirror-autosuggest
CodeMirror autosuggest addon
Stars: ✭ 44 (-38.03%)
Mutual labels:  codemirror
fongshen-editor
A highly customizable code-inserting editor for markdown or other languages
Stars: ✭ 35 (-50.7%)
Mutual labels:  codemirror
phpPgAdmin6
PHP7+ Based administration tool for PostgreSQL 9.3+
Stars: ✭ 45 (-36.62%)
Mutual labels:  codemirror
Vudit
A file viewer for Android
Stars: ✭ 40 (-43.66%)
Mutual labels:  syntax-highlighter
TW5-codemirror-plus
An attempt to make a better writing experience for TW using codemirror.
Stars: ✭ 26 (-63.38%)
Mutual labels:  codemirror
vue-showdowns-editor
A markdown editor using codemirror and previewer using @jhuix/showdowns for Vue.js.
Stars: ✭ 27 (-61.97%)
Mutual labels:  codemirror
codemirror-blocks
A library for building language-specific, CodeMirror-friendly editors that are a11y-friendly.
Stars: ✭ 22 (-69.01%)
Mutual labels:  codemirror
macos-snippets
Snip is a lightweight snippets manager app for macOS
Stars: ✭ 238 (+235.21%)
Mutual labels:  codemirror
react-code-preview
Code edit preview for React.
Stars: ✭ 52 (-26.76%)
Mutual labels:  codemirror
magento-advanced-code-editor
An advanced code editor that'll make it much easier to write clean markup for CMS pages, static blocks, product pages and Transactional Emails.
Stars: ✭ 19 (-73.24%)
Mutual labels:  codemirror
TW5-CodeMirror-Enhanced
An enhanced for CodeMirror framework in TiddlyWiki, including TW5 highlight, WikiLink auto-completion, expandable hint, snippets, etc.
Stars: ✭ 24 (-66.2%)
Mutual labels:  codemirror
dword
Web editor based on CodeMirror
Stars: ✭ 37 (-47.89%)
Mutual labels:  codemirror
codemirror-plugin
Emmet plugin for CodeMirror web editor
Stars: ✭ 55 (-22.54%)
Mutual labels:  codemirror
conanlight
Bring syntax highlighting to your conan file in VSCode 💡
Stars: ✭ 12 (-83.1%)
Mutual labels:  syntax-highlighter
codemirror-buttons
CodeMirror buttons addon
Stars: ✭ 30 (-57.75%)
Mutual labels:  codemirror
react-native-codeditor
React Native component to display code editor using WebView and CodeMirror
Stars: ✭ 21 (-70.42%)
Mutual labels:  codemirror
clojure-mode
Clojure/Script mode for CodeMirror 6
Stars: ✭ 105 (+47.89%)
Mutual labels:  codemirror
acf-code-field
WordPress ACF Plugin to add a Codemirror powered field
Stars: ✭ 34 (-52.11%)
Mutual labels:  codemirror

GitHub

screenshot

GitHub

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

Proxyman screenshot

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

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

  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 Sources/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 the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].