https://github.com/eta-dev/highlightjs-eta
https://github.com/eta-dev/highlightjs-eta
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/eta-dev/highlightjs-eta
- Owner: eta-dev
- Created: 2020-09-23T19:18:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T19:35:19.000Z (over 5 years ago)
- Last Synced: 2025-04-19T19:06:01.232Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)