# Highlight.js

Highlight.js is a JavaScript syntax-highlighting library with automatic language detection for Node.js and the web.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to Send Code Blocks in Discord (With Syntax Highlighting)

DevFeed: [How to Send Code Blocks in Discord (With Syntax Highlighting)](<https://devfeed.tech/articles/how-to-send-code-blocks-in-discord-with-syntax-highlighting-86852.md>)

Original publisher: [Read original article](<https://markodenic.com/discord-code-block/>)

Author: Marko

Published: 2026-10-14T09:00:00Z

Content type: tutorial

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [Discord](<https://devfeed.tech/topics/discord.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [discord](<https://devfeed.tech/tags/discord.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [python](<https://devfeed.tech/tags/python.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

A practical guide to sending code in Discord using inline code and fenced code blocks, including syntax highlighting, common formatting fixes, and options for sharing code that exceeds message limits.

### Source excerpt

Send code in Discord the right way: inline code, multi-line code blocks, syntax highlighting for JavaScript, Python, CSS and more, colored text with diff, and what to do with code that's too long.

## Cryptography Essentials for Node.js Developers: Hashing, Encryption, and Signing Done Right

DevFeed: [Cryptography Essentials for Node.js Developers: Hashing, Encryption, and Signing Done Right](<https://devfeed.tech/articles/cryptography-essentials-for-node-js-developers-hashing-encryption-and-signing-done-right-63930.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/cryptography-essentials-for-node-js-developers-hashing-encryption-and-signing-done-right/>)

Author: SitePoint Team

Published: 2026-10-01T19:49:14Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [hashing](<https://devfeed.tech/topics/hashing.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [aes](<https://devfeed.tech/tags/aes.md>), [api](<https://devfeed.tech/tags/api.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [async](<https://devfeed.tech/tags/async.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [developers](<https://devfeed.tech/tags/developers.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [hashing](<https://devfeed.tech/tags/hashing.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [signing](<https://devfeed.tech/tags/signing.md>), [web-security](<https://devfeed.tech/tags/web-security.md>)

### AI overview

This tutorial shows backend developers how to use Node.js's built-in crypto module for common security tasks: hashing passwords with scrypt and unique salts, encrypting recoverable data with AES-256-GCM and unique IVs, verifying webhook signatures with HMAC and constant-time comparisons, and generating unpredictable tokens with cryptographic randomness. It emphasizes choosing the right primitive and avoiding unsafe defaults.

### Source excerpt

null Continue reading Cryptography Essentials for Node.js Developers: Hashing, Encryption, and Signing Done Right on SitePoint.

## Customizing Eleventy Syntax Highlighting with Line Numbers and MicroLighter

DevFeed: [Customizing Eleventy Syntax Highlighting with Line Numbers and MicroLighter](<https://devfeed.tech/articles/from-prismjs-to-better-prismjs-to-microlighter-in-three-painless-steps-55718.md>)

Original publisher: [Read original article](<https://infrequently.org/2026/09/microlighter/>)

Author: Alex Russell

Published: 2026-09-20T00:00:00Z

Content type: article

Language: en

Sources: [Alex Russell](<https://devfeed.tech/sources/alex-russell.md>)

Topics: [Eleventy](<https://devfeed.tech/topics/eleventy.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [MkDocs](<https://devfeed.tech/topics/mkdocs.md>), [CSS](<https://devfeed.tech/topics/css.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Nunjucks](<https://devfeed.tech/topics/nunjucks.md>)

Tags: [11ty](<https://devfeed.tech/tags/11ty.md>), [css](<https://devfeed.tech/tags/css.md>), [eleventy](<https://devfeed.tech/tags/eleventy.md>), [js](<https://devfeed.tech/tags/js.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [webdev](<https://devfeed.tech/tags/webdev.md>)

### AI overview

An Eleventy-focused article compares PrismJS syntax highlighting with a custom shortcode approach for adding line numbers and considers MicroLighter as an alternative for improved markup and highlighting behavior.

### Source excerpt

An excellent feature of Eleventy1 is the official PrismJS-based syntax highlighting plugin, which adds painless build-time syntax highlighting. It keeps 11ty sites from worrying about client-side bloat from JS-based highlighters and the common failure mode of over-including language definitions.2 But nothing's perfect. Contents Lilliputian Adventures In Line Numbering Greener Pastures The official plugin integrates naturally, and I took to using it via the usual triple-backtick markdown syntax: # The Usual Markdown Nonsense { #the-usual-nonsense } And now for something entirely different: ```js function yourCodeHere() { /* ... */ } ``` Etc., etc. This works a treat, until you want a bit more control. At that point, what seems magical starts to feel restrictive. Lilliputian Adventures In Line Numbering A recent goal was to add line numbers. After reading some of the plugin code that invokes PrismJS, I closed my laptop in frustration, unable to cajole eleventy-plugin-syntaxhighlight into outputting line numbers. Walking away from the keyboard paid off a few days later when I recalled the paired shortcode code path generated stable per-line delimiters. This allowed reuse of the plugin's primary logic, wrapped in a bit of string munging to add the necessary styling hooks: // From this site's Eleventy config file // Because my esm conversion is still partial: const { default: syntaxHighlight } = await import("@11ty/eleventy-plugin-syntaxhighlight"); // ... module.exports = async function(config) { // ... let syntaxHighlightOptions = { // For faster CSS selectors preAttributes: { highlighted: "highlighted" }, codeAttributes: { highlighted: "highlighted" }, }; config.addPlugin(syntaxHighlight, syntaxHighlightOptions); config.addPairedShortcode("code", function(content, language="", highlightLines="") { // The design of cssMin and addToBundle are outside // the scope of this post. // // Suffice to say, we're inlining the contents // of the file path passed as an argument to

## Replacing highlight.js with microlighter and CSS Custom Highlights

DevFeed: [Replacing highlight.js with microlighter and CSS Custom Highlights](<https://devfeed.tech/articles/have-you-heard-the-good-news-about-microlighter-49239.md>)

Original publisher: [Read original article](<https://blog.jim-nielsen.com/2026/shipping-microlighter/>)

Author: Jim Nielsen

Published: 2026-08-25T19:00:00Z

Content type: article

Language: en

Sources: [Jim Nielsen's Blog](<https://devfeed.tech/sources/jim-nielsen-s-blog.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [web-standards](<https://devfeed.tech/topics/web-standards.md>)

Tags: [browsers](<https://devfeed.tech/tags/browsers.md>), [css](<https://devfeed.tech/tags/css.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [website](<https://devfeed.tech/tags/website.md>)

### AI overview

The author describes replacing highlight.js on their blog with microlighter, which uses the CSS Custom Highlights API for syntax highlighting without DOM manipulation. The change removes a dependency and loads microlighter only on relevant post pages containing code.

### Source excerpt

Dave Rupert wrote about shipping microlighter: a tool for handling syntax highlighting using the CSS Custom Highlights API. I saw his post the day he released it, and I had an implementation PR up for my blog by end of day. Then, like I do with so many things, I let it sit there. This is the period where my subconscious takes over. It does the work of, "How do I actually feel about that? Do I want to merge it? Do I have any regrets about what I did?" If I still want to merge it after a few days, that's usually a good sign that I'll be happy with the work. (Sometimes after a few days I say, "What the hell was I thinking?" and then it's easy to simply close the PR with zero regrets.) Well it's a few days later and I still feel good about it, so time to ship! My PR for this is pretty straightforward: Remove highlight.js dependency (and related plumbing) On paths that 1) match my post pages (i.e. /YYYY/:slug), and 2) have code on them, pull microlighter deps from a CDN and run it. Done. Granted, there are trade-offs to this approach. I get it. Dave's explainer for this tool on The ShopTalk Show vibed with me because I've been in his shoes many times: "Whoops, somehow syntax highlighting on my blog is broken again. Guess I need to fix it. Ugh. I've done prism, I've done highlight.js, I've done shiki. What should I do this time? Could I do this in a way that's just less?" He clarifies: I'm not coming at this like, "Everyone is doing it wrong!" I was just kind of like, "Could I do this in a way that suited me?" Well, this approach suites me. There's a kind of conceptual elegance to it where syntax highlighting lives in the realm of a styling operation rather than a content transformation plus styling. In short: syntax highlighting, i.e. styling text, is a styling concern so solve it with CSS -- no DOM manipulation required! Plus, I mean, how cool is it that the code on the website is the same as the code in the DOM?!? I guess this is how I know I still like working on the w

## GitHub Desktop 3.5.9-beta2

DevFeed: [GitHub Desktop 3.5.9-beta2](<https://devfeed.tech/articles/github-desktop-3-5-9-beta2-75375.md>)

Original publisher: [Read original article](<https://github.com/desktop/desktop/releases/tag/release-3.5.9-beta2>)

Published: 2026-04-22T08:02:47Z

Content type: release

Language: en

Sources: [GitHub Desktop](<https://devfeed.tech/sources/github-desktop.md>)

Topics: [GitHub Desktop](<https://devfeed.tech/topics/github-desktop.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [Astro](<https://devfeed.tech/topics/astro.md>), [React](<https://devfeed.tech/topics/react.md>), [Windows UI Library (WinUI)](<https://devfeed.tech/topics/winui.md>)

Tags: [astro](<https://devfeed.tech/tags/astro.md>), [github](<https://devfeed.tech/tags/github.md>), [github-desktop](<https://devfeed.tech/tags/github-desktop.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [react](<https://devfeed.tech/tags/react.md>), [release](<https://devfeed.tech/tags/release.md>), [release-notes](<https://devfeed.tech/tags/release-notes.md>), [spacing](<https://devfeed.tech/tags/spacing.md>), [sync](<https://devfeed.tech/tags/sync.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

GitHub Desktop 3.5.9-beta2 fixes Astro syntax highlighting, a Windows scrollbar synchronization issue with react-virtualized Grid, and spacing in the release notes dialog.

### Source excerpt

**Fixed** - Add syntax highlighting for .astro files - #21987. Thanks @JunDev76! - Fix Windows scrollbar sync with react-virtualized Grid - #21940 - Improve spacing on release notes dialog - #21962. Thanks @DylanDevelops!

## GitHub Desktop 3.5.9-beta1

DevFeed: [GitHub Desktop 3.5.9-beta1](<https://devfeed.tech/articles/github-desktop-3-5-9-beta1-75376.md>)

Original publisher: [Read original article](<https://github.com/desktop/desktop/releases/tag/release-3.5.9-beta1>)

Published: 2026-04-15T01:56:09Z

Content type: release

Language: en

Sources: [GitHub Desktop](<https://devfeed.tech/sources/github-desktop.md>)

Topics: [GitHub Desktop](<https://devfeed.tech/topics/github-desktop.md>), [GitHub Copilot SDK](<https://devfeed.tech/topics/github-copilot-sdk.md>), [GitHub Copilot CLI](<https://devfeed.tech/topics/github-copilot-cli.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [commit](<https://devfeed.tech/tags/commit.md>), [crash](<https://devfeed.tech/tags/crash.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [github](<https://devfeed.tech/tags/github.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [performance](<https://devfeed.tech/tags/performance.md>), [update](<https://devfeed.tech/tags/update.md>), [v2](<https://devfeed.tech/tags/v2.md>)

### AI overview

GitHub Desktop 3.5.9-beta1 adds date, time, and number formatting preferences and fixes a crash in the conflicts dialog during multi-commit operations. It also updates Git for Windows and the Copilot SDK, addresses Copilot CLI process spawning issues on Windows, and improves diff expansion, syntax highlighting, and regex performance.

### Source excerpt

**Added** - Add date, time, and number formatting preferences to the Appearance settings - #21836 **Fixed** - Fix a crash (Maximum update depth exceeded) that could occur while the conflicts dialog was open during a multi-commit operation - #21879 - Remove discontinued GitHub AE references from the Enterprise sign-in screen - #21926. Thanks @toddmanion! **Improved** - Update Git for Windows to v2.53.0.windows.3 - #21957 - Update Copilot SDK to 0.2.1 and fix Copilot CLI process spawning issues on Windows - #21930 - Enable diff expansion and syntax highlighting for up to 1MB - #21876 - Update re2js regex engine to use optimized DFA path for improved performance - #21924. Thanks @le0pard!

## Finding a Better Syntax Highlighter for Modern PHP Code

DevFeed: [Finding a Better Syntax Highlighter for Modern PHP Code](<https://devfeed.tech/articles/a-syntax-highlighter-that-doesn-t-suck-44074.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/a-syntax-highlighter-that-doesnt-suck>)

Author: Brent

Published: 2024-03-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [server-side-rendering](<https://devfeed.tech/tags/server-side-rendering.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>)

### AI overview

The author describes replacing a manual syntax-highlighting workflow for PHP code in the Tempest documentation. They explain frustrations with highlight.js and a PHP port, especially their handling of modern PHP syntax and server-side rendering needs.

### Source excerpt

Read the full post on https://stitcher.io/blog/a-syntax-highlighter-that-doesnt-suck

## Vue.js Syntax Highlighting with highlight.js

DevFeed: [Vue.js Syntax Highlighting with highlight.js](<https://devfeed.tech/articles/vue-js-syntax-highlighting-with-highlight-js-31844.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2017/02/vuejs-syntax-highlighting-with-highlightjs/>)

Author: Chris Hager

Published: 2017-02-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Vue.js](<https://devfeed.tech/topics/vue.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [javascript](<https://devfeed.tech/tags/javascript.md>), [npm](<https://devfeed.tech/tags/npm.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [vue-js](<https://devfeed.tech/tags/vue-js.md>)

### AI overview

A tutorial showing how to use highlight.js for syntax highlighting in a Vue.js application, including a custom v-highlightjs directive that handles initial rendering and source-code updates.

### Source excerpt

Everyone loves a good syntax highlighting. This post explains how to use highlight.js for syntax highlighting in a Vue.js application. The method shown here allows syntax highlighting both on original creation of an element as well as on updates to the source-code, using a simple v-highlightjs directive such as this: <pre v-highlightjs><code class="javascript"></code></pre> You can see a live example here: jsfiddle.net/metachris/1vz9oobc. To achieve this, we just need to install the highlight.

## Syntax Highlighted Diffs

DevFeed: [Syntax Highlighted Diffs](<https://devfeed.tech/articles/syntax-highlighted-diffs-69912.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/product-news/syntax-highlighted-diffs/>)

Author: Adam Roben

Published: 2014-12-10T02:10:20Z

Content type: release

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [commit](<https://devfeed.tech/tags/commit.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [product](<https://devfeed.tech/tags/product.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>)

### AI overview

Unified and split diffs now include syntax highlighting, adding color to code so developers can more easily understand its meaning and structure in commits, pull requests, and review comments.

### Source excerpt

Unified and split diffs now feature syntax highlighting, which adds colors to your code to make its meaning and structure clearer. Now you can more easily understand the code that...

## Adapting a Blogging Project for Terminal-Based Publishing and Heroku Deployment

DevFeed: [Adapting a Blogging Project for Terminal-Based Publishing and Heroku Deployment](<https://devfeed.tech/articles/beginning-38371.md>)

Original publisher: [Read original article](<https://meedamian.com/post/beginning/>)

Author: hi@meedamian.com (Damian Mee)

Published: 2014-05-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Damian Mee | Blog | Portfolio | About](<https://devfeed.tech/sources/damian-mee-blog-portfolio-about.md>)

Topics: [Heroku](<https://devfeed.tech/topics/heroku.md>), [Express](<https://devfeed.tech/topics/express.md>), [Git](<https://devfeed.tech/topics/git.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [npm](<https://devfeed.tech/topics/npm.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Bootstrap](<https://devfeed.tech/topics/bootstrap.md>), [jQuery](<https://devfeed.tech/topics/jquery.md>)

Tags: [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [express](<https://devfeed.tech/tags/express.md>), [git](<https://devfeed.tech/tags/git.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [npm](<https://devfeed.tech/tags/npm.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

The author describes adapting an existing blogging project for writing in Sublime Text and publishing from the terminal. The work included dependency changes, Bootstrap and jQuery integration, Express compatibility fixes, replacing the Markdown processing setup with marked and highlight.js, and deploying the result on Heroku.

### Source excerpt

Several days ago I was casually browsing awesomeness of Github when I saw this project by koush, and instantly understood that's the blogging flow I could use - write in sublime and publish/deploy from terminal. I had to do some cleanup there, update & fix some dependencies and rewrite parts of it to a better language. Later, I've created a new Heroku instance, moved my domain to a heroku Add-on called pointDNS, did git push heroku, and it worked great :).