Glimmer syntax highlighting with Prism.JS
npm install prismjs-glimmer

glimmer syntax highlighting with Prism.js
``bash`
yarn add prismjs-glimmeror
npm install prismjs-glimmer
`js
import Prism from 'prismjs';
import { setup } from 'prismjs-glimmer';
setup(Prism);
Prism.highlightAll();
`
- the javascript language must be registered before setup is called.setup
- _must_ be called before any highlighting occurs.
Supported language tags:
`html
`{tag}
where could be:
- glimmer
- hbs
- html.hbs
- html.handlebars
- htmlbars
NOTE handlebars highlighting will use glimmer highlighting when this plugin is present
`html`
`js
const Prism = require('prismjs');
const { setup } = require('prismjs-glimmer');
setup(Prism);
Prism.highlightAll();
`
Only Node 14 is supported
`js
import Prism from 'prismjs';
import { setup } from 'prismjs-glimmer';
setup(Prism);
Prism.highlightAll();
`
With Node 14, launch with
`bash`
NODE_OPTIONS="--experimental-vm-modules" node your-module-script.js
Debug with yarn debug -p 4201http://localhost:4201
Visit
Run Tets with yarn test or npm run test`