Skip to main content

Django CodeMirror 6

Project description

Django CodeMirror 6 is an Apache2 licensed Django application to support CodeMirror 6.

Features

  • Pre-compiled bundles for Code Mirror 6

  • Tested on Python 3.7, 3.8, 3.9, 3.10, 3.11

  • Tested on Django 3.2 LTS and Django 4.1

  • Tested on Linux, Mac, and Windows

https://github.com/grantjenks/django-codemirror6/workflows/integration/badge.svg https://github.com/grantjenks/django-codemirror6/workflows/release/badge.svg

Quickstart

Installing Django CodeMirror 6 is simple with pip:

$ pip install django-codemirror6

Change settings.py like:

INSTALLED_APPS += ['django_codemirror6']

In the template:

{% load static %}
...
<script src="{% static 'cm6/cm6-all-yjs.min.js' %}"></script>

Bundles are named as:

cm6[-language][-yjs][.min].js
  • [-language] is optional and any of cpp, css, html, java, javascript, json, markdown, php, python, rust, sql, xml, or the special “all”

  • [-yjs] is optional for real-time sharing/collaboration

  • [.min] is optional for minified sources

Examples:

  • cm6.js is a text editor with no specific language support and no yjs

  • cm6-python.min.js is a minified text editor with Python language support

  • cm6-all-yjs.min.js is a minified text editor with everything

See the demo for a Code Mirror 6 example configuration.

Reference and Indices

Django CodeMirror 6 License

Copyright 2022-2023 Grant Jenks

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-codemirror6-1.0.1.tar.gz (15.0 MB view details)

Uploaded Source

Built Distribution

django_codemirror6-1.0.1-py3-none-any.whl (15.1 MB view details)

Uploaded Python 3

File details

Details for the file django-codemirror6-1.0.1.tar.gz.

File metadata

  • Download URL: django-codemirror6-1.0.1.tar.gz
  • Upload date:
  • Size: 15.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for django-codemirror6-1.0.1.tar.gz
Algorithm Hash digest
SHA256 47881f7dfaf0e082780c3fd5ee957d173bd37616c63332041605e9618a11216b
MD5 ad6dd0971edc3bc6fa3ee7be038c15dc
BLAKE2b-256 8e3984ebcb2c950a3bdb699f9890b08e546ddb160b52c46fa0448848fa2c80cb

See more details on using hashes here.

File details

Details for the file django_codemirror6-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_codemirror6-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac08b32ce1530ade42413afa5c639b992477c79d90145f1839bda1bf7e66c50
MD5 6b208d518b658eb867684649979774b7
BLAKE2b-256 d5272b4bc44b1e94ea5c17b993cf2943b7d37e5406a9fb505a4ce8d5e3c2d903

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page