Socket
Book a DemoInstallSign in
Socket

codemirror-latex-hint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-latex-hint

An IntelliSense-like hinter for CodeMirror

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

LaTeX Snippet Hinter for CodeMirror

This is a hinter function for use with CodeMirror's showHint.js plugin. This is based on TeXStudio's autocompletion mechanism.

Features

Pressing tab allows users to move to the next argument of a macro. It also highlights user input in the list of matched hints.

Installation

npm install codemirror-latex-hint codemirror

To Use

import LaTeXHint from "codemirror-latex-hint";
import macros from "codemirror-latex-hint/lib/macros.json";
import "codemirror-latex-hint/lib/index.css";

CodeMirror.registerHelper("hint", "stex", (cm) => LaTeXHint(cm, macros));

Customization

The list of macros in the package contains all MathJaX macros and environments. You can import your own list of macros (with the format given in macros.json) rather than the packaged one.

Keywords

codemirror

FAQs

Package last updated on 22 Jan 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.