Skip to content

highlights code in any programming language

License

Notifications You must be signed in to change notification settings

dasmurphy/microlighted

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microlighted.js

mcirolighted.js is a complete rewritten version of microlight.js

This is a work in progress version of restructuring the library and making it a little better for real syntax highlighting.

--

microlighted.js is a small library which improves readability of code snippets by highlighting, for any programming language, without attaching additional language packages.

Differences from original library include more detection of other things like numbers, hex, html tokens and more. It is based on css styles and not on inline style in the html code.

This library can be universally used, but is optimized for HTML, CSS and Javascript.

--

TODO

  • name will be microlighted.js
  • html tokens in brackets or before spaces
  • attributes in brackets but not first
  • numbers
  • number with # and text after
  • functions before braces
  • language detection html/css/js
  • brackets
  • operators
  • change classes to single item
  • replace tabs with spaces option

--

For more information on microlight.js please look at https://github.com/asvd/microlight

About

highlights code in any programming language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%