# highlightjs-zig

> highlight.js syntax definition for Zig!

Latest version **1.0.2** (published 2021-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install highlightjs-zig
pnpm add highlightjs-zig
yarn add highlightjs-zig
bun add highlightjs-zig
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-07-19 |
| First published | 2021-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ash Ametrine |
| Maintainers | nekoash |
| Keywords | hljs, highlight.js, highlightjs, zig, syntax |

## Links

- npm: https://www.npmjs.com/package/highlightjs-zig
- Repository: https://notabug.org/Ash/highlightjs-zig
- Issues: https://notabug.org/Ash/highlightjs-zig/issues
- npm.io page: https://npm.io/package/highlightjs-zig

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-07-19
- 1.0.1 — 2021-07-19
- 1.0.0 — 2021-07-19

## README

# Zig syntax support for [highlight.js](https://highlightjs.org/)

Syntax highlighting for Zig using highlight.js

## Usage

Include the Highlight.js library in your webpage or Node app, then load this module.

### Static website or simple usage

Simply load the module after loading highlight.js. You'll use the minified version found in the `dist` directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.

```html
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script
  type="text/javascript"
  src="/path/to/highlightjs-zig/dist/zig.min.js"
></script>
<script type="text/javascript">
  hljs.initHighlightingOnLoad();
</script>
```

This will find and highlight code inside of `<pre><code>` tags; it tries to detect the language automatically. If automatic detection doesn’t work for you, you can specify the language in the `class` attribute:

```html
<pre>
    <code class="zig">
    ...
    </code>
</pre>
```

### With Node or another build system

If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.

```javascript
var hljs = require("highlightjs");
var hljsZig = require("highlightjs-zig");

hljs.registerLanguage("zig", hljsZig);
hljs.initHighlightingOnLoad();
```

## License

highlightjs-zig is released under the MIT License. See [LICENSE](https://notabug.org/Ash/highlightjs-zig/src/master/LICENSE) file for details.

## Author

Ash Ametrine <ash@axel.dev>

## Links

- The official site for the Highlight.js library is <https://highlightjs.org/>.
- The Highlight.js GitHub project: <https://github.com/highlightjs/highlight.js>
- Learn more about Zig: <https://ziglang.org/>

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