Software Alternatives & Reviews
Table of contents
  1. Social Mentions
  2. Comments

highlight.js

Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. subtitle

highlight.js Reviews and details

Screenshots and images

  • highlight.js Landing page
    Landing page //
    2023-09-25

Badges

Promote highlight.js. You can add any of these badges on your website.
SaaSHub badge
Show embed code

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about highlight.js and what they use it for.
  • Code Syntax highlighting in Next Js
    Let's get started by installing the highlight js. - Source: dev.to / 3 months ago
  • Build a simple code editor
    Luckily, implementing syntax highlighting in our simple code editor is easy with the use of external libraries. There are several JavaScript libraries available, such as Prism and Highlight.js. For our editor, we'll use Prism since it's easy to use and supports a wide range of programming languages. - Source: dev.to / 4 months ago
  • Show HN: A template for Markdown-based sites (no static site generator required)
    The templates grabs Markdown file data with XMLHttpRequest and converts it to HTML with https://showdownjs.com/ . Classless styles are done with https://picocss.com/ and code block syntax highlighting is done with https://highlightjs.org/ . GitHub repo: https://github.com/dandalpiaz/markdown-pages. - Source: Hacker News / 5 months ago
  • Is copying from open source projects stealing?
    My search for a third-party syntax highlighter brought me to highlight.js. Ctil converts text (.txt) and Markdown (.md) to generated HTML (.html) files, so I want the generated HTML files to support syntax highlighting. highlight.js can be used as HTML Tags by using a Content Delivery Network, CDN, so I was able to add highlight.js by adding the following lines to the generated HTML files:. - Source: dev.to / 6 months ago
  • building a basic markdown editor: unified, trees and data
    The real magic is what happens once you generate the syntax trees; at that point, you can modify them with the existing plugins (or make you own, if you really want to). For instance, I use a plugin to add specific css classes to certain elements so they integrate better with the visual design of the website another to add code highlighting with highlight.js and some others for generating a js object from the... - Source: dev.to / 7 months ago
  • HTML5 - Text markup elements
    Pre is for a block of preformatted text, so spaces are preserved, and the font can be monospaced. Another element is code for programming codes. Notice that code doesn't offer code highlighting; for this, use JavaScript + CSS code, like Highlight.js. - Source: dev.to / 8 months ago
  • Better code highlighting on the web: rehype-tree-sitter
    Another contestant in this realm is Bright[1]. It runs entirely on the server and doesn't increase bundle size as seen here[2]. Regarding parsing speed tree-sitter is without a doubt performant since it is written in Rust, but I don't have any problems "parsing on every keystroke" with a setup containing Marked[3], highlight.js[4] and a sanitizer. I did however experience performance issues with other Markdown... - Source: Hacker News / 9 months ago
  • Use Notion as a database for your Next.JS Blog
    Import your favorite highlight.js theme. - Source: dev.to / 12 months ago
  • Documentation generators and custom syntax highlighting
    I use Asciidoctor, highlightjs, a custom highlight.js language definition and that bash script:. Source: 12 months ago
  • Discord is experimenting with improved markdown!
    Coloring text by using code blocks is unintended, it’s made for code, not text. And even then, they only have a handful of colors there and they use the same theme with all languages. I believe they use highlight.js with the GitHub themes. Source: about 1 year ago
  • Anyone familiar with syntax highlighting for code? Trying to build a "Code Block" component
    My ask is this: Is there a way to highlight a text element similar to the code example shown on this website https://highlightjs.org/ or above? All I want is the color of a certain character to change according to what something like highlightjs tells it to be. If anyone has ANY information relevant to this, it would honestly be so helpful. Source: about 1 year ago
  • Discord, what the HELL did you do to markdown formatting in code blocks??
    They updated the version of highlight.js they use, and I believe changed which theme was used too. Also, relevant xkcd. Source: over 1 year ago
  • Should you use Currying in Go?
    Thanks, it's an implemention of gruvbox by https://highlightjs.org/. Source: over 1 year ago
  • Is there a library or component for those kind of mock code editor windows for displaying code?
    I was having trouble finding the right terms to google, but eventually found a couple libraries for syntax highlighting e.g. https://highlightjs.org/ .. But Carbon looks more like what I need. Source: over 1 year ago
  • Converting and customizing Markdown files to HTML with Unified, remark & rehype
    PrismJS and Highlight.js are two JavaScript libraries to highlight code keywords for multiple programming languages. - Source: dev.to / over 1 year ago
  • How to make code samples like this on the website?
    You mean syntax highlighting code on a website? https://highlightjs.org/. Source: over 1 year ago
  • DNS Esoterica – Why you can't dig Switzerland
    I got excited when I saw the nicely coloured output from dig which makes it more readable. I thought that maybe the author has some new version that’s not yet available on Ubuntu LTS. Unfortunately, the nice colours are from judicious use of highlight.js¹ – one good reason to have uMatrix configured to allow first-party JavaScript! ¹ https://highlightjs.org/. - Source: Hacker News / almost 2 years ago
  • Python Logging (with examples)
    I think this is what you would like to use: highlighter.js. Source: almost 2 years ago
  • Apply a plugin command to all cards in deck?
    My note type has a script that detects 3 backticks in a field, and highlights the code inside using highlightjs. I can't access my note type because I'm on my iPhone, but you can find others who did something similar on the internet like here. Source: almost 2 years ago
  • What do you use to embed samples and sample code in your web page? Looking for something like CodePen embeds and also something that shows sample code with a language picker.
    I use my own implementation of https://highlightjs.org/ on my blog and like it. Source: almost 2 years ago
  • Text content styled like source code
    Are you just asking how to do syntax highlighting of formatted text? highlight.js. Source: about 2 years ago

Do you know an article comparing highlight.js to other products?
Suggest a link to a post with product alternatives.

Suggest an article

Generic highlight.js discussion

Log in or Post with

This is an informative page about highlight.js. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.