Title: Code Syntax Highlighting Block
Author: hbgl
Published: <strong>11 juni 2025</strong>
Last modified: 29 november 2025

---

Sök tillägg

![](https://ps.w.org/code-syntax-highlighting-block/assets/banner-772x250.png?rev
=3310012)

![](https://ps.w.org/code-syntax-highlighting-block/assets/icon.svg?rev=3310016)

# Code Syntax Highlighting Block

 Av [hbgl](https://profiles.wordpress.org/hbgl/)

[Ladda ner](https://downloads.wordpress.org/plugin/code-syntax-highlighting-block.1.1.2.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/code-syntax-highlighting-block/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/code-syntax-highlighting-block/#reviews)
 * [Utveckling](https://sv.wordpress.org/plugins/code-syntax-highlighting-block/#developers)

 [Support](https://wordpress.org/support/plugin/code-syntax-highlighting-block/)

## Beskrivning

A WordPress plugin that provides a Gutenberg block for displaying computer source
code with syntax-highlighting. Uses [highlight.js](https://highlightjs.org/) under
the hood.

 * ✅ Supports 192 languages
 * ✅ 256 included themes
 * ✅ Server rendered static HTML
 * ✅ Zero JS runtime dependencies
 * ✅ Dynamic light/dark mode based on [preferred color scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)

## Skärmdumpar

 * [[
 * A demo of syntax-highlighted PHP code.
 * [[
 * A demo of editing the block in the Gutenberg editor.

## Block

Detta tillägg tillhandahåller 1 block.

 *   Code with Syntax Highlighting Display computer code with syntax highlighting.

## Vanliga frågor

### Why no line numbers?

[Because highlight.js does not have them.](https://highlightjs.readthedocs.io/en/latest/line-numbers.html)

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”Code Syntax Highlighting Block” är programvara med öppen källkod. Följande personer
har bidragit till detta tillägg.

Bidragande personer

 *   [ hbgl ](https://profiles.wordpress.org/hbgl/)

[Översätt ”Code Syntax Highlighting Block” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/code-syntax-highlighting-block)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/code-syntax-highlighting-block/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/code-syntax-highlighting-block/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/code-syntax-highlighting-block/)
via [RSS](https://plugins.trac.wordpress.org/log/code-syntax-highlighting-block/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.1.2

 * Updated Codemirror code editor in Gutenberg to latest version
 * Updated internal dependencies

#### 1.1.1

 * Added option for setting global default line height

#### 1.1.0

 * Added better code editor

#### 1.0.0

 * Release

## Meta

 *  Version **1.1.2**
 *  Senast uppdaterat **4 månader sedan**
 *  Aktiva installationer **Färre än 10**
 *  WordPress-version ** 6.7 eller senare **
 *  Testat upp till **6.8.5**
 *  PHP-version ** 8.1 eller senare **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/code-syntax-highlighting-block/)
 * Etiketter
 * [code](https://sv.wordpress.org/plugins/tags/code/)[syntax highlighting](https://sv.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/code-syntax-highlighting-block/advanced/)

## Betyg

Än så länge har inga recensioner skickats in.

[Lägg till min recension](https://wordpress.org/support/plugin/code-syntax-highlighting-block/reviews/#new-post)

[Se alla recensioner](https://wordpress.org/support/plugin/code-syntax-highlighting-block/reviews/)

## Bidragande personer

 *   [ hbgl ](https://profiles.wordpress.org/hbgl/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/code-syntax-highlighting-block/)