Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleplo/elucidate
Simple, light syntax highlighter for the web.
https://github.com/kyleplo/elucidate
syntax-highlighting
Last synced: about 1 month ago
JSON representation
Simple, light syntax highlighter for the web.
- Host: GitHub
- URL: https://github.com/kyleplo/elucidate
- Owner: kyleplo
- License: mit
- Created: 2022-06-26T20:00:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T02:04:14.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T00:51:57.264Z (about 2 months ago)
- Topics: syntax-highlighting
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@kyleplo/elucidate
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elucidate
Simple, light syntax highlighter for the web.See the [hosted demo](https://gh.kyleplo.com/elucidate/)
## Installation
Get the library from NPM
```
npm install @kyleplo/elucidate
```## Importing
This library supports usage as both an ES6 module and a CommonJS module, as well as in the browser.### ES6
```js
import elucidate from "@kyleplo/elucidate"
```### CommonJS
```js
const elucidate = require("@kyleplo/elucidate");
```### Browser
```html```
Or host `bundle.min.js` yourself.
## Usage
Get syntax highlighting HTML
```js
elucidate(`
alert("hello world");
`, "javascript");
//