# \#syntax-highlighting

**URL:** https://forums.swift.org/tag/syntax-highlighting/922.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Syntax highlighting semi-broken in recent update in some browsers](https://forums.swift.org/t/syntax-highlighting-semi-broken-in-recent-update-in-some-browsers/83854)

<div class="topic-metadata">

**Author:** [@jamieQ](https://forums.swift.org/u/jamieQ)\
**Replies:** 2\
**Last updated:** [December 28, 2025, 10:58am UTC](https://forums.swift.org/t/syntax-highlighting-semi-broken-in-recent-update-in-some-browsers/83854 "2025-12-28T10:58:47Z")

</div>

not sure if it's just me, but recently i've observed that the syntax highlighting in posts may break when it is first rendered on screen. scrolling the post off and on again appears to restore the normal highlighting beh…

---

## [Syntax highlighting from a peer macro](https://forums.swift.org/t/syntax-highlighting-from-a-peer-macro/70991)

<div class="topic-metadata">

**Author:** [@adammcarter](https://forums.swift.org/u/adammcarter)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 11:18pm UTC](https://forums.swift.org/t/syntax-highlighting-from-a-peer-macro/70991 "2024-04-02T23:18:35Z")

</div>

I've created a peer macro which outputs a suffixed name @attached(peer, names: suffixed(MySuffix)) But in Xcode the code it outputs doesn't get any syntax highlightng and is just some bland black on white text. Is the…

---

## [WordPress plug-in for Swift syntax highlighting?](https://forums.swift.org/t/wordpress-plug-in-for-swift-syntax-highlighting/68531)

<div class="topic-metadata">

**Author:** [@wadetregaskis](https://forums.swift.org/u/wadetregaskis)\
**Replies:** 5\
**Last updated:** [December 30, 2023, 5:15pm UTC](https://forums.swift.org/t/wordpress-plug-in-for-swift-syntax-highlighting/68531 "2023-12-30T17:15:07Z")

</div>

Does anyone know of a WordPress plug-in that provides good syntax-highlighting for Swift code snippets? I've tried about a dozen, spanning every library I can find - Prism.js, Enlighter.js, Highlight.js, VS Code, etc, b…

---

## [Is the Forum's syntax highlighting broken?](https://forums.swift.org/t/is-the-forums-syntax-highlighting-broken/68642)

<div class="topic-metadata">

**Author:** [@AlexanderM](https://forums.swift.org/u/AlexanderM)\
**Replies:** 3\
**Last updated:** [December 22, 2023, 8:59pm UTC](https://forums.swift.org/t/is-the-forums-syntax-highlighting-broken/68642 "2023-12-22T20:59:13Z")

</div>

E.g. this snippet struct Point { let x: Int let y: Int } It appears all monochrome on my machine: Is the syntax highlighting plugin broken?
