Skip to content

Highlight pug while using `highlight.js`.

License

Notifications You must be signed in to change notification settings

forwardemail/highlight-pug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

Highlight pug while using `highlight.js`.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%