[WordPress] 外掛分享: Rectus HTML Source Editor

首頁 › 外掛目錄 › Rectus HTML Source Editor
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 6.8+ PHP 7.2.24+ v1.1.7 上架:2026-11-28

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Rectus HTML Source Editor」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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).
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.

延伸相關外掛

文章
Filter
Mastodon