https://github.com/rohanvashisht1234/bend-highlight-js
A syntax highlighter for the bend programming language in highlight.js
https://github.com/rohanvashisht1234/bend-highlight-js
Last synced: 2 months ago
JSON representation
A syntax highlighter for the bend programming language in highlight.js
- Host: GitHub
- URL: https://github.com/rohanvashisht1234/bend-highlight-js
- Owner: RohanVashisht1234
- License: gpl-3.0
- Created: 2024-06-06T15:34:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T17:42:46.000Z (12 months ago)
- Last Synced: 2025-02-10T22:28:48.088Z (4 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- 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