🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@argdown/codemirror-mode

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@argdown/codemirror-mode

A simple Argdown syntax highlighting mode

latest
Source
npmnpm
Version
1.7.4
Version published
Maintainers
1
Created
Source

@argdown/codemirror-mode

Argdown logo

A simple Codemirror syntax highlighting mode for the Argdown argumentation syntax.

For a live demo of this mode see the Argdown Demo.

This package is part of the Argdown project.

how to register the mode with CodeMirror:

var mode = require("argdown-codemirror-mode");
var CodeMirror = require("codemirror");

// Activate the simple mode addon
require("codemirror/addon/mode/simple.js");

// Load the stylesheet (if using webpack)
require("./node_modules/argdown-codemirror-mode/codemirror-argdown.css");

// Define the mode
CodeMirror.defineSimpleMode("argdown", mode);

To see any results you have to load 'codemirror-argdown.css' in your html file.

Keywords

argdown

FAQs

Package last updated on 08 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts