@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.01

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