diff --git wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.css wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.css
new file mode 100644
index 000000000..b864b00b1
--- /dev/null
+++ wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.css
@@ -0,0 +1,26 @@
+.wporg-bbp-code-tools {
+	margin-top: -24px;
+	margin-bottom: 24px;
+}
+
+#bbpress-forums div.bbp-reply-content a.wporg-bbp-code-expand,
+#bbpress-forums div.bbp-topic-content a.wporg-bbp-code-expand {
+	background: #f0f0f0;
+	display: inline-block;
+	border: 1px solid #ddd;
+	border-top: none;
+	padding: 3px 8px 3px 4px;
+	text-decoration: none;
+}
+
+.wporg-bbp-code-expand:before {
+	font: 400 16px/1 dashicons;
+	margin-right: 3px;
+	float: left;
+	padding-top: 3px;
+	content: "\f347";
+}
+
+.wporg-bbp-code-expand.wporg-bbp-code-expanded:before {
+	content: "\f343";
+}
diff --git wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.js wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.js
new file mode 100644
index 000000000..e0fd7bbe6
--- /dev/null
+++ wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks-expand-contract.js
@@ -0,0 +1,52 @@
+jQuery(document).ready( function($) {
+	$( '.bbp-topic-content > pre > code, .bbp-reply-content > pre > code' ).each( function() {
+		var $el = $( this );
+
+		if ( typeof this.scrollHeight !== 'undefined' && $el.height() < this.scrollHeight ) {
+			var btn = $( '<div class="wporg-bbp-code-tools"><a class="wporg-bbp-code-expand" href="#">Expand</a></div>' );
+
+			btn.insertAfter( $el.closest( 'pre' ) )
+		}
+	});
+
+	$( '.wporg-bbp-code-expand' ).on( 'click', function(el) {
+		var pre = $( this ).closest( 'div' ).prev( 'pre' ),
+			code = pre.find( 'code' ),
+			heightGoal,
+			maxHeightGoal,
+			scrollGoal;
+
+		if ( $( this ).hasClass( 'wporg-bbp-code-expanded' ) ) {
+			maxHeightGoal = pre.data( 'bbpInitHeight' );
+			scrollGoal = pre.offset().top - 45;
+		} else {
+			pre.data( 'bbpInitHeight', pre.css( 'max-height' ) );
+			heightGoal = code.get( 0 ).scrollHeight;
+			maxHeightGoal = 'none';
+		}
+
+		if ( typeof heightGoal !== 'undefined' ) {
+			pre.css( 'max-height', maxHeightGoal );
+			code.css( 'max-height', maxHeightGoal );
+			code.animate( { height: heightGoal });
+			$( this ).text( 'Contract' );
+		} else {
+			$( [document.documentElement, document.body] ).animate({
+			        scrollTop: scrollGoal
+			    },
+			    600,
+			    'swing',
+			    function() {
+					pre.css( 'max-height', maxHeightGoal );
+					code.css( 'max-height', maxHeightGoal );
+			    }
+		    );
+
+			$( this ).text( 'Expand' );
+		}
+
+		$( this ).toggleClass( 'wporg-bbp-code-expanded' );
+
+		return false;
+	});
+});
\ No newline at end of file
diff --git wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks.php wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks.php
new file mode 100644
index 000000000..77d344753
--- /dev/null
+++ wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks/wporg-bbp-code-blocks.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Plugin Name: bbPress: Code blocks formatter
+ * Description: Convert wiki markup links into HTML WordPress Codex links.
+ * Version:     1.0
+ * Author:      WordPress.org
+ * Author URI:  https://wordpress.org/
+ * License:     GPLv2 or later
+ *
+ */
+
+/**
+ *	This program is free software; you can redistribute it and/or modify
+ *	it under the terms of the GNU General Public License, version 2, as
+ *	published by the Free Software Foundation.
+ *
+ *	This program is distributed in the hope that it will be useful,
+ *	but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *	GNU General Public License for more details.
+ *
+ *	You should have received a copy of the GNU General Public License
+ *	along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+if ( ! defined( 'ABSPATH' ) ) exit;
+
+if ( ! class_exists( 'WPORG_bbPress_Code_Blocks' ) ) {
+class WPORG_bbPress_Code_Blocks {
+	public function __construct() {
+		wp_enqueue_script( 'wporg-bbp-code-blocks-expand-contract', plugins_url( 'wporg-bbp-code-blocks-expand-contract.js', __FILE__ ), [ 'jquery' ], 1, true );
+		wp_enqueue_style( 'wporg-bbp-code-blocks-expand-contract', plugins_url( 'wporg-bbp-code-blocks-expand-contract.css', __FILE__ ), [], 1 );
+	}
+} }
+
+new WPORG_bbPress_Code_Blocks;
