Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
highlightjs-rpm-specfile
Advanced tools
highlight.js
syntax definition for RPM spec files.
For more about highlight.js, see https://highlightjs.org/
For more about RPM, see https://rpm.org/
Simply include the highlight.js
script package in your webpage or node app, load up this module and apply it to hljs
.
If you're not using a build system and just want to embed this in your webpage:
<script type="text/javascript" src="/path/to/highlight.pack.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-rpm-specfile/rpm-specfile.js"></script>
<script type="text/javascript">
hljs.registerLanguage('rpm-specfile', window.hljsDefineRpmSpecfile);
hljs.initHighlightingOnLoad();
</script>
If you're using webpack / rollup / browserify / node:
var hljs = require('highlightjs');
var hljsDefineRpmSpecfile = require('highlightjs-rpm-specfile');
hljsDefineRpmSpecfile(hljs);
hljs.initHighlightingOnLoad();
This is a pretty simple package, the only thing you might want to do differently is name the language something other than rpm-specfile
. If you want to do this, simply import { definer } from 'highlightjs-rpm-specfile';
and use it like: hljs.registerLanguage('othername', definer);
.
FAQs
syntax highlighting definition for RPM spec files.
The npm package highlightjs-rpm-specfile receives a total of 36 weekly downloads. As such, highlightjs-rpm-specfile popularity was classified as not popular.
We found that highlightjs-rpm-specfile demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.