# codemirror-lang-turtle

> Turtle language support for CodeMirror

Latest version **0.0.2** (published 2023-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install codemirror-lang-turtle
pnpm add codemirror-lang-turtle
yarn add codemirror-lang-turtle
bun add codemirror-lang-turtle
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-05-16 |
| First published | 2023-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 35.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Achraf Atauil |
| Maintainers | aatauil |

## Links

- npm: https://www.npmjs.com/package/codemirror-lang-turtle
- Repository: https://github.com/aatauil/codemirror-lang-turtle
- Homepage: https://github.com/aatauil/codemirror-lang-turtle#readme
- Issues: https://github.com/aatauil/codemirror-lang-turtle/issues
- npm.io page: https://npm.io/package/codemirror-lang-turtle

## Dependencies (3)

- [@lezer/lr](https://npm.io/package/@lezer/lr.md) ^1.0.0
- [@lezer/highlight](https://npm.io/package/@lezer/highlight.md) ^1.0.0
- [@codemirror/language](https://npm.io/package/@codemirror/language.md) ^6.0.0

## Recent versions

- 0.0.2 (latest) — 2023-05-16
- 0.0.1 — 2023-05-15

## README

# CodeMirror TURTLE Language Support

<span><a href="https://www.npmjs.com/package/codemirror-lang-turtle" title="NPM version badge"><img src="https://img.shields.io/npm/v/codemirror-lang-turtle?color=blue" alt="NPM version badge" /></a></span>

A CodeMirror extension that provides Turtle syntax highlighting and language support.

### Usage

```ts
import { basicSetup } from 'codemirror';
import { EditorView } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { turtle } from 'codemirror-lang-turtle';

const doc = `
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://example.org/stuff/1.0/> .

<http://www.w3.org/TR/rdf-syntax-grammar>
  dc:title "RDF/XML Syntax Specification (Revised)" ;
  ex:editor [
    ex:fullname "Dave Beckett";
    ex:homePage <http://purl.org/net/dajobe/>
  ] .
`

new EditorView({
  state: EditorState.create({
    doc,
    extensions: [
      basicSetup,
      turtle(),
    ],
  }),
  parent: document.querySelector('#editor'),
});
```

---
_Source: https://npm.io/package/codemirror-lang-turtle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
