An open API service indexing awesome lists of open source software.

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

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