Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zigistry/zilite


https://github.com/zigistry/zilite

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

![](https://raw.githubusercontent.com/Zigistry/Zilite/main/assets/logo.png)

## Yet another code highlighter.

- Uses no dependencies.
- You can contribute more programming languages.
- Is extremely small size.

## How to use?
Just see the following example:

### For basic HTML:

```html


const zilite:[]const u8 = "Syntax Highlighter";


import { highlightElements } from "https://cdn.jsdelivr.net/npm/[email protected]";
import { zig } from "https://cdn.jsdelivr.net/npm/[email protected]/src/language/zig.js";
highlightElements(zig, "language-zig");

```

### For use as a node module:

```bash
npm i zilite
```

```js
import * as hl from "higherlight";
import { zig } from "higherlight/src/language/zig";

const highlightedCode = hl.highlight(zig, "const x = 'asdf';");
console.log(highlightedCode);
```

Understood? or Still confused? Create a new issue and clear your doubts.

## Contributing:

Please ⭐️ this repo, create pull requests, issues, etc.