Skip to content

jianghai/code-beautify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

$ npm install code-beautify

Usage

import beautify from 'code-beautify'

beautify('const a = 1', 'js') // <span class="kwd">const</span> a <span class="opt">=</span> <span class="num">1</span>

Supported languages

  • markup Such as HTML、XML
  • js JavaScript and JSX
  • css
  • sh Shell
  • java

About

代码高亮,支持 jsx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published