highlight.js syntax definition for Eta template engine
npm install highlightjs-etaAdd syntax highlighting to the Eta template engine (EJS will probably work too)
Load the module after Highlight.js
``html`
type="text/javascript"
src="/path/to/highlightjs-eta/dist/eta.min.js"
>
You can also load from a CDN:
`html`
type="text/javascript"
src="https://unpkg.com/highlightjs-eta/dist/eta.min.js"
>
`js
var hljs = require("highlightjs")
var hljsRobotsTxt = require("highlightjs-robots-txt")
hljs.registerLanguage("robots-txt", hljsRobotsTxt)
hljs.initHighlightingOnLoad()
``
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.