https://github.com/highlightjs/highlightjs-c3
C3 - a language grammar for highlight.js
https://github.com/highlightjs/highlightjs-c3
Last synced: 6 months ago
JSON representation
C3 - a language grammar for highlight.js
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-c3
- Owner: highlightjs
- License: mit
- Created: 2023-03-30T21:20:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T13:53:38.000Z (about 2 years ago)
- Last Synced: 2024-11-07T13:24:12.102Z (8 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The C3 Programming Language for highlight.js
## Usage
### Static website or simple usage
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
hljs.highlightAll();
import std::io;fn void main()
{
io::printfn("hello, world");
}