Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highlightjs-rpm-specfile

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-rpm-specfile

syntax highlighting definition for RPM spec files.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-14%
Maintainers
1
Weekly downloads
 
Created
Source

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/

Usage

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();

Advanced

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);.

Keywords

FAQs

Package last updated on 09 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc