prism-jsy

0.0.4 • Public • Published

prism-jsy

JSY JavaScript dialect syntax bundle for Prism.

JSY is an indented (offside) JavaScript dialect. We believe indentation is better at describing code blocks instead of painstakingly matching open/close sections { } () [].

Think modern JavaScript — ES6, ES2018 — indented similar to [Python][] or [CoffeeScript][].

Please see JSY language docs for details on the JSY dialect.

Quickstart

<head>
  ...
  <link href='https://cdn.jsdelivr.net/npm/prismjs@1.20.0/themes/prism.css' rel='stylesheet' />
 
    <script src='https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-core.js'></script> 
    <script src='https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-clike.js'></script> 
    <script src='https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-javascript.js'></script> 
 
    <script src='https://cdn.jsdelivr.net/npm/prism-jsy/esm/prism-jsy-cdn.mjs'></script> 
 
  <!-- or -->
    <script src='https://cdn.jsdelivr.net/npm/prism-jsy/iife/prism-jsy-syntax.js'></script> 
 
  <!-- or -->
    <script src='https://cdn.jsdelivr.net/npm/prism-jsy/umd/prism-jsy.js'></script> 
 
  ...
</head>
 
<body>
 
  ...
  <pre>
    if true != false ::
      console.log @
        'A log message'
        @{} ts: new Date
            meta: import.meta
  </pre>
</body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i prism-jsy

Weekly Downloads

1

Version

0.0.4

License

BSD-2-Clause

Unpacked Size

39.4 kB

Total Files

10

Last publish

Collaborators

  • shanewholloway