@forwardemail/highlight-pug

1.0.1 • Public • Published

@forwardemail/highlight-pug

Highlight pug while using highlight.js.

Install

npm install @forwardemail/highlight-pug

Usage

const highlightPug = require('@forwardemail/highlight-pug');

// <https://github.com/ztmd/highlight-pug/issues/1>
hljs.registerLanguage('pug', highlightPug);

Note

For experiment, not test fully.

Syntax

  • Doctype
  • Inline Comment
  • Variable(#{...}, ${...})
  • Selector(tag, id, class)
  • Symbol(=, ,, :, ?, !)

TODO

  • [ ] Block comment
  • [ ] Text
  • [ ] Attribute

Readme

Keywords

none

Package Sidebar

Install

npm i @forwardemail/highlight-pug

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

7.69 kB

Total Files

8

Last publish

Collaborators

  • titanism
  • niftylettuce