@magic-modules/pre

@magic pre module. syntax highlighting for javascript.

Usage no npm install needed!

<script type="module">
  import magicModulesPre from 'https://cdn.skypack.dev/@magic-modules/pre';
</script>

README

@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
0.0.13 - unreleased

...