Socket
Book a DemoInstallSign in
Socket

highlight-syntax-pastel

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

highlight-syntax-pastel

Pastel theme for highlight-syntax

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

highlight-syntax-pastel stability

npm version build status downloads js-standard-style

Pastel theme for highlight-syntax.

Usage

var Highlight = require('highlight-syntax')
var css = require('sheetify')
var html = require('bel')
var fs = require('fs')

css`
  body { margin: 0 }
`

var prefix = css`
  :host {
    margin: 0;
    padding: 2em;
    background-color: #333
  }
`

css('./index.css')
var highlight = Highlight([ require('highlight-syntax/js') ])

var src = fs.readFileSync(__filename, 'utf8')
var inner = highlight(src, { lang: 'js' })
var el = html`<pre class=${prefix}><code></code></pre>`
el.innerHTML = inner
document.body.appendChild(el)
$ browserify index.js -t sheetify/transform > out.js

Installation

$ npm install highlight-syntax-pastel

See Also

License

MIT

Keywords

theme

FAQs

Package last updated on 30 Dec 2016

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