highlightjs-sap-abap

highlight.js syntax definition for SAP ABAP

Usage no npm install needed!

<script type="module">
  import highlightjsSapAbap from 'https://cdn.skypack.dev/highlightjs-sap-abap';
</script>

README

npm version

highlightjs-sap-abap

SAP ABAP highlighting for highlight.js

Build distributable

  • install this repo in folder extra of highlightjs
  • run the build tool from the main highlightjs folder:
npm run build-cdn

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. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.

<link rel="stylesheet" href="/path/to/styles/default.css">
<script src="/path/to/highlight.min.js"></script>
<script src="/path/to/highlightjs-sap-abap/dist/abap.min.js"></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

Using directly from the jsDelivr CDN

<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/default.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/highlightjs-sap-abap/src/abap.min.js"></script>

License

MIT

Maintainers

@cassioiks, @larshp