https://github.com/highlightjs/highlightjs-bend
Highlight.js grammar for Bend
https://github.com/highlightjs/highlightjs-bend
Last synced: 4 months ago
JSON representation
Highlight.js grammar for Bend
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-bend
- Owner: highlightjs
- License: gpl-3.0
- Created: 2024-06-29T02:13:22.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T08:58:19.000Z (12 months ago)
- Last Synced: 2024-12-28T10:47:46.870Z (6 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bend - a language grammar for [bend programming language](https://higherorderco.com/)
Bend is a high-level language for native multi-threading created by [The higher order company](https://higherorderco.com/).
## Usage
Simply 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
hljs.highlightAll();
```
### Using directly from the UNPKG CDN
```html
```
- More info:
### 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 hljsBend = require('highlightjs-bend');hljs.registerLanguage("bend", hljsBend);
hljs.highlightAll();
```### React
You need to import both Highlight.js and third-party language like Bend:
```js
import React, {Component} from 'react'
import 'highlight.js/scss/darcula.scss' # your favourite theme
import bend from './bend'
import hljs from 'highlight.js'
hljs.registerLanguage('bend', bend);class Highlighter extends Component
{
constructor(props)
{
super(props);
hljs.highlightAll();
}render()
{
let {children} = this.props;
return
{
this.node = node}>
{children}
}
}
}export default Highlighter;
```## License
Highlight.js is released under the MIT 1.0 License. See [LICENSE][1] file
for details.### Author
Rohan Vashisht [https://github.com/rohanvashisht1234](https://github.com/rohanvashisht1234)
### Maintainer
Rohan Vashisht [https://github.com/rohanvashisht1234](https://github.com/rohanvashisht1234)
## Links
- The official site for the Highlight.js library is .
- The Highlight.js GitHub project:[1]: https://github.com/highlightjs/highlightjs-bend/blob/master/LICENSE