# RFC: Fully enabling --enable-experimental-code-block-annotations

**URL:** <https://forums.swift.org/t/rfc-fully-enabling-enable-experimental-code-block-annotations/89348>\
**Category:** Swift-DocC\
**Tags:** docc\
**Created:** [September 2, 2026, 11:46pm UTC](https://forums.swift.org/t/rfc-fully-enabling-enable-experimental-code-block-annotations/89348 "2026-09-02T23:46:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Heck](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joseph_heck/32/22369_2.png) [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Post date:** [September 2, 2026, 11:46pm UTC](https://forums.swift.org/t/rfc-fully-enabling-enable-experimental-code-block-annotations/89348/1 "2026-09-02T23:46:21Z")

</div>

I'm not sure how many folks have had much of chance to use `--enable-experimental-code-block-annotations` to add in the copy-to-clipboard or the extended highlighting capability for code blocks. Since it's a Swift 6.3 feature, it's comparatively new.

I'd like to propose that we remove the `experimental` from this feature capability, and further - float the idea of enabling it by default. This has a notable effect that will change all the existing content to enable a copy-to-clipboard functionality by default on the default presentation of DocC content.

For prior discussion and details on this feature, see [Code Block Options Flag Name – `--enable-experimental-code-block-annotations`](https://forums.swift.org/t/code-block-options-flag-name-enable-experimental-code-block-annotations/82287) and [RFC: Additional Options for Code Blocks (highlight, strikeout, wrap, line numbers)](https://forums.swift.org/t/rfc-additional-options-for-code-blocks-highlight-strikeout-wrap-line-numbers/82065)

---

<div class="post-metadata">

**Author:** ![Joseph\_Heck](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joseph_heck/32/22369_2.png) [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Post date:** [September 17, 2026, 9:01pm UTC](https://forums.swift.org/t/rfc-fully-enabling-enable-experimental-code-block-annotations/89348/2 "2026-09-17T21:01:22Z")

</div>

Following up, I've opened [updates the code block annotation to on by default by heckj · Pull Request #1667 · swiftlang/swift-docc · GitHub](https://github.com/swiftlang/swift-docc/pull/1667) to enable this by default on the `main` branch (which would flow into Swift 6.5 at this point).

---

<div class="post-metadata">

**Author:** ![Joseph\_Heck](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joseph_heck/32/22369_2.png) [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Post date:** [September 30, 2026, 12:17am UTC](https://forums.swift.org/t/rfc-fully-enabling-enable-experimental-code-block-annotations/89348/3 "2026-09-30T00:17:43Z")

</div>

And closing the loop - the PR is merged, so we're on a flight path for "on by default" in the next released version of Swift (6.5)
