LLL Code Language Review / コードの言語未指定

List standard code blocks with no language in a published saved article. 公開保存済み記事で言語未指定のコードブロックを一覧する点検。

Public name@mrhandsome39.bsky.social/code-language-review

Or open Registry in your EmDash admin and search for this name.

Permissions

Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.

  • Read content

    Read entries from your site’s content collections.

  • Read content structure

    Read the collections and fields defined on your site.

FAQ

What is listed? For one Portable Text field of a published, saved article: standard code blocks whose language is unset (absent or null) or blank (empty or spaces only), with block position, line count and character count. A count of blocks with a language and of explicit plain text is shown too.

Why distinguish "unset" from plain text? In the EmDash editor, the language button of a code block shows "Set language" when no language is stored and "Plain text" for an explicit "plaintext" choice (the button appears when the pointer is over the block). Only the screen-reader label reads "Set language (current: Plain text)" for both. The editor has no screen that shows every block of one article at once; this panel lists unset and blank blocks with their positions, using the saved values (null/absent vs "plaintext"). An explicit plain-text choice is treated as intentional and is not listed.

Does a missing language matter? That depends on your theme. The standard code block only adds a language-* class to the <pre>/<code> elements; it ships no highlighter and does not fill in a default language. If your theme has no highlighter or language styling, an unset language changes nothing visible.

What is not listed? HTML blocks and unknown/custom blocks (including code blocks with extra or mistyped fields) are counted and the result is marked partial, but never read. Nothing is changed.

Why is my draft rejected? Only the published saved snapshot is read. Drafts, unsaved typing and pending revisions are never read.

Is the code shown? No. Neither the code text nor the file name is displayed.

Security

Capabilities: content:read, schema:read only. No network access (allowedHosts is empty), no storage, no writes, no scheduled work.

The panel route requires an authenticated user who may edit the entry (content:edit_own_drafts), reads only the published saved snapshot of the entry named by the editor context, and rejects drafts and pending revisions.

Output contains only the block position, the language state, and line and character counts. Code text, file names and article text are never returned. A report cell starting with =, +, - or @ gets a leading ' against spreadsheet formula execution.

Limits: field JSON 128 KiB, 2000 blocks, 200 listed blocks, report 48 KiB, full Blocks response validated. Over-limit input produces no partial result.

Changelog

0.1.1

Corrects the description of the editor: a code block with no language shows "Set language" on its language button, an explicit plain-text choice shows "Plain text", and only the screen-reader label reads "Plain text" for both. A language made only of invisible characters (for example a zero-width space) is now listed as blank instead of being treated as a language. No change to permissions or data access.

0.1.0

Adds a read-only editor panel that lists standard code blocks of a published saved article that have no language (unset or blank), with block position, line count and character count, in English and Japanese. An explicit plain-text choice is counted separately and not listed. HTML and unknown blocks are reported as unsupported.

Installation

Install as a sandboxed EmDash plugin (EmDash 1.4.0 or later, below 2). Open a published, saved article and use the "Code Language Review / コードの言語未指定" editor panel. Read-only; no configuration.

Keep exploring

More plugins like LLL Code Language Review / コードの言語未指定

Browse by keyword, or see everything @mrhandsome39.bsky.social publishes.

Install on your site

Open in EmDash

LLL Code Language Review / コードの言語未指定

@mrhandsome39.bsky.social/code-language-review

Choose the EmDash site where you want to review this plugin. Nothing is installed until you confirm its permissions in that site's admin.

This browser will remember the site. You can change it next time.