🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

highlightjs-eta

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlightjs-eta

highlight.js syntax definition for Eta template engine

0.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

highlights-eta

Add syntax highlighting to the Eta template engine (EJS will probably work too)

Usage

Browser

Load the module after Highlight.js

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script
  type="text/javascript"
  src="/path/to/highlightjs-eta/dist/eta.min.js"
></script>
<script type="text/javascript">
  hljs.initHighlightingOnLoad()
</script>

You can also load from a CDN:

<script
  type="text/javascript"
  src="https://unpkg.com/highlightjs-eta/dist/eta.min.js"
></script>

Node

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

Keywords

eta

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts