Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codemirror-wrapped-line-indent

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-wrapped-line-indent

A plugin for CodeMirror to handle wrapped line indentation

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84K
increased by2.29%
Maintainers
1
Weekly downloads
 
Created
Source

Wrapped Line Indentation for CodeMirror

An extension for CodeMirror that adds indentation for wrapped lines.

Installation

Using npm:

npm install codemirror-wrapped-line-indent

Usage

import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { wrappedLineIndent } from 'codemirror-wrapped-line-indent';

// ... your CodeMirror setup code ...

const state = EditorState.create({
  // ... other state options ...
  extensions: [
    EditorView.lineWrapping,
    wrappedLineIndent
  ]
});

const view = new EditorView({ state });

License

MIT

Keywords

FAQs

Package last updated on 17 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc