Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
highlightjs-apex
Advanced tools
The below screenshot was captured from a demo webpage after dropping highlight.min.js
to a dist
folder.
(Code taken from Salesforce Trigger Framework and Highlight Java example code)
Simply include the Highlight.js library in your webpage, then load this module.
Simply load this module after loading Highlight.js. You'll use the minified version found in the dist
directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-apex/dist/apex.min.js"></script>
<link rel="stylesheet" href="/path/to/highlightjs-apex/demo/highlight.css" />
<script type="text/javascript">
hljs.highlightAll();
</script>
For more details of the usage see Highlight.js main page.
If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.
var hljs = require('highlight.js');
var hljsApexTxt = require('highlightjs-apex');
hljs.registerLanguage("apex", hljsApexTxt);
hljs.highlightAll();
Highlight.js is released under the BSD 3-Clause License. See LICENSE file for details.
Feel free to create issues or (even better) pull requests.
FAQs
Apex Language of Salesforce highlighting plugin for highlight.js
The npm package highlightjs-apex receives a total of 341 weekly downloads. As such, highlightjs-apex popularity was classified as not popular.
We found that highlightjs-apex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.