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

https://github.com/eta-dev/highlightjs-eta


https://github.com/eta-dev/highlightjs-eta

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# highlights-eta

Add syntax highlighting to the [Eta template engine](https://eta.js.org) (EJS will probably work too)

## Usage

### Browser

Load the module after Highlight.js

```html

hljs.initHighlightingOnLoad()

```

You can also load from a CDN:

```html

```

### Node

```js
var hljs = require("highlightjs")
var hljsRobotsTxt = require("highlightjs-robots-txt")

hljs.registerLanguage("robots-txt", hljsRobotsTxt)
hljs.initHighlightingOnLoad()
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)