Title: Rectus HTML Source Editor
Author: Rectus Inc.
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/rectus-html-source-editor/assets/banner-772x250.jpg?rev=3833868)

![](https://ps.w.org/rectus-html-source-editor/assets/icon-256x256.png?rev=3833868)

# Rectus HTML Source Editor

 By [Rectus Inc.](https://profiles.wordpress.org/rectuswp/)

[Download](https://downloads.wordpress.org/plugin/rectus-html-source-editor.1.1.7.zip)

 * [Details](https://wordpress.org/plugins/rectus-html-source-editor/#description)
 * [Reviews](https://wordpress.org/plugins/rectus-html-source-editor/#reviews)
 *  [Installation](https://wordpress.org/plugins/rectus-html-source-editor/#installation)
 * [Development](https://wordpress.org/plugins/rectus-html-source-editor/#developers)

 [Support](https://wordpress.org/support/plugin/rectus-html-source-editor/)

## Description

While active, Rectus HTML Source Editor switches posts, pages, and editable custom
post types to the classic editor in wp-admin. The main content field opens in code
mode with Quicktags. The Visual editor is disabled for that field. Other editor 
fields, synced patterns, navigation editing, widget editing, the Site Editor, and
REST requests keep their usual behavior.

The plugin works with classic editing setups such as Classic Editor or Disable Gutenberg,
but does not require either plugin. It uses the CodeMirror files bundled with WordPress
and loads its highlighting enhancement only on post editing screens that support
an editor. If the user’s profile disables syntax highlighting, the content field
remains in code mode as a plain textarea with Quicktags.

Features include:

 * HTML syntax highlighting with selectable two-space, four-space, or tab indentation,
   optional automatic indentation on Enter, and font sizes from 12 to 24 pixels.
   These choices, along with folding and closing-tag completion, are saved for the
   current WordPress user on this site.
 * A tag check for missing or unexpected closing tags. Results are shown as an accessible
   editor notice and do not block saving.
 * A button to format leading indentation on existing lines. Formatting is skipped
   when the tag check finds an issue. Text inside comments, shortcodes, and sensitive
   elements such as `pre`, `textarea`, `script`, `style`, and `title` is preserved.
 * Compact Format, Check, and Settings buttons appear beside the native Quicktags
   buttons. Indentation, font size, folding, and closing-tag completion settings
   are in an accessible dialog. Click an opening tag’s line number to fold it; a
   plus sign appears beside that line number to unfold it. Use Ctrl+Q to toggle 
   folding at the cursor. Press Escape, then Tab to move keyboard focus out of the
   editor.

The tag check is intended for HTML fragments and understands common optional HTML5
end tags. It is not a complete HTML validator. Formatting changes only leading whitespace;
it does not reformat tags, attributes, or text content. The selected indentation
style is used by the format action. Folding changes only the display. The format
action changes the document, so review it before saving.

Preferences are stored per user and per site in WordPress user options. HTML checks
and formatting run in the browser. The plugin uses WordPress’s existing post editor,
permissions, and save process. If another plugin already replaces the same editor
textarea with CodeMirror or provides equivalent HTML editor controls, disable that
overlapping feature for the classic editor to avoid competing editor instances.

For a Japanese overview and installation guide, see the [Rectus HTML Source Editor guide (Japanese)](https://www.rectus.co.jp/tool/rectushtmlsourceeditor.html).

#### Translations

English source strings are included. After publication on WordPress.org, translations
are managed through translate.wordpress.org and delivered as WordPress language 
packs when available.

## Installation

 1. Upload the `rectus-html-source-editor` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the Plugins screen.
 3. Open a post editing screen. The main content field opens directly in code mode.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Rectus HTML Source Editor” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Rectus Inc. ](https://profiles.wordpress.org/rectuswp/)

“Rectus HTML Source Editor” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/rectus-html-source-editor/contributors)
for their contributions.

[Translate “Rectus HTML Source Editor” into your language.](https://translate.wordpress.org/projects/wp-plugins/rectus-html-source-editor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/rectus-html-source-editor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/rectus-html-source-editor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/rectus-html-source-editor/)
by [RSS](https://plugins.trac.wordpress.org/log/rectus-html-source-editor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.7

 * Fix double-escaped content for users who have the visual editor disabled.
 * Keep a typed slash after “<” when no closing tag can be completed.
 * Update the word count while typing in the code editor.
 * Leave reusable block patterns in the block editor.
 * Indent the opening line of preformatted and script elements when formatting.
 * Use WordPress.org language packs for translations.

#### 1.1.6

 * Add a per-user setting to turn automatic indentation on Enter on or off.

#### 1.1.5

 * Position the settings dialog beside its toolbar button.

#### 1.1.4

 * Make the settings dialog narrower and close it by clicking outside.

#### 1.1.3

 * Show an accessible plus control beside folded HTML elements to unfold them.

#### 1.1.2

 * Place compact plugin buttons beside Quicktags and preserve the fullscreen control.

#### 1.1.1

 * Keep the standard Quicktags toolbar visible and move editor preferences into 
   a dialog.
 * Add Japanese translations and complete typed `</` using the current HTML context.

#### 1.1.0

 * Add HTML element folding, selectable indentation styles, and closing-tag completion.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.1.7**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.8 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.2.24 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/rectus-html-source-editor/) and 
   [Japanese](https://ja.wordpress.org/plugins/rectus-html-source-editor/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/rectus-html-source-editor)
 * Tags
 * [classic editor](https://wordpress.org/plugins/tags/classic-editor/)[Codemirror](https://wordpress.org/plugins/tags/codemirror/)
   [formatting](https://wordpress.org/plugins/tags/formatting/)[html](https://wordpress.org/plugins/tags/html/)
 *  [Advanced View](https://wordpress.org/plugins/rectus-html-source-editor/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/rectus-html-source-editor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/rectus-html-source-editor/reviews/)

## Contributors

 *   [ Rectus Inc. ](https://profiles.wordpress.org/rectuswp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/rectus-html-source-editor/)