Skip to content

a wrapper that syntax highlights javascript as pre should.

License

Notifications You must be signed in to change notification settings

magic-modules/pre

Repository files navigation

@magic-modules/pre

syntax highlighting for @magic

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

install:

npm install --save-exact @magic-modules/pre

usage:

// in any component view
const component = {
  View: () => Pre('const name = true'),
}

changelog

0.0.1

first commit

0.0.2

use @magic npm org for dependency installs, instead of github

0.0.3
  • require node 13.5.0
  • except array as input
0.0.4

better string, comment and link handling.

0.0.5

fix comment indents

0.0.6

cleanup.

0.0.7

  • do not error on empty lines
  • convert to Modules, no more lib functions.
  • lib now exports keywords, builtins, booleans, regexes

0.0.8

  • bump required node version to 14.2.0
  • no empty strings in keywords and builtins

0.0.9

always textAlign: left

0.0.10

bump required node version to 14.15.4

0.0.11
  • update dependencies
  • test html
  • handle multiple strings in one line
0.0.12
  • change some styles
  • handle lines config parameter correctly
  • update dependencies
0.0.15 - unreleased

...

About

a wrapper that syntax highlights javascript as pre should.

Resources

License

Stars

Watchers

Forks

Packages

No packages published