Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It can work with pretty much any markup, doesn’t depend on any other frameworks, and has automatic language detection. Highlight.js supports over 180 languages in the core library. There are also 3rd party language definitions available to support even more languages. We strongly recommend <pre><code> wrapping for code blocks. It's quite semantic and "just works" out of the box with zero fiddling. It is possible to use other HTML elements (or combos), but you may need to pay special attention to preserving linebreaks. You can run highlighting inside a web worker to avoid freezing the browser window while dealing with very big chunks of code.

Features

  • 197 languages and 248 styles
  • Automatic language detection
  • Multi-language code highlighting
  • Available for node.js
  • Works with any markup
  • Compatible with any js framework

Project Samples

Project Activity

See All Activity >

Categories

Code Review

License

BSD License

Follow Highlight.js

Highlight.js Web Site

Other Useful Business Software
Intelligent Retail Management Icon
Intelligent Retail Management

Retail space, product categories, planograms, automatic ordering, and shelf labels management

Quant offers a wide range of solutions for retail. Within one integrated software system, it allows you to efficiently combine the management of retail space, shelf labels and marketing materials with task management, reporting and automatic replenishment.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Highlight.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Code Review Software

Registered

2023-03-10