New:Socket for Asana Is Now Available.Learn more
Get Started

highlightjs-why3

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlightjs-why3

A highlight.js language grammar for the WhyML / Why3 verification platform.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

highlightjs-why3

A highlight.js language grammar for WhyML, the intermediate verification language used by the Why3 deductive verification platform.

Usage

Static HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="path/to/why3.min.js"></script>
<script>hljs.highlightAll();</script>

UNPKG CDN

<script src="https://unpkg.com/highlightjs-why3/dist/why3.min.js"></script>

Node.js / npm

npm install highlightjs-why3
const hljs = require('highlight.js');
const why3 = require('highlightjs-why3');

hljs.registerLanguage('why3', why3);
hljs.highlightAll();

ES Module

import hljs from 'highlight.js';
import why3 from 'highlightjs-why3/dist/why3.es.min.js';

hljs.registerLanguage('why3', why3);
hljs.highlightAll();

Highlighted Elements

CSS classLanguage element
hljs-keywordKeywords (theory, module, let, match, ...)
hljs-built_inBuilt-in types and tactics (int, forall, requires, ...)
hljs-literalLiterals (true, false)
hljs-titleTheory and module names
hljs-symbolType variables ('a, 'b, ...)
hljs-numberNumeric literals
hljs-stringString and character literals
hljs-doctagDocumentation comments ((** ... *))
hljs-commentBlock comments ((* ... *))

Contributing

Building dist files

The dist/ minified files are built using the highlight.js build tool. Follow the 3rd party quick start guide:

git clone https://github.com/highlightjs/highlight.js
cd highlight.js
cp -r /path/to/highlightjs-why3 extra/highlightjs-why3
npm install
node ./tools/build.js -t cdn

The built why3.min.js will appear in extra/highlightjs-why3/dist/.

Running tests

npm install
npm test

License

BSD 3-Clause License. See LICENSE.

Keywords

why3

FAQs

Package last updated on 20 Mar 2026

Related posts