grommasdietz/kirby-hidden-characters

Kirby CMS plugin for visualising hidden characters in the Panel

Maintainers

Package info

github.com/grommasdietz/kirby-hidden-characters

Type:kirby-plugin

pkg:composer/grommasdietz/kirby-hidden-characters

Statistics

Installs: 1 479

Dependents: 0

Suggesters: 0

Stars: 44

Open Issues: 0

2.1.0 2026-05-12 10:51 UTC

README

Kirby CMS plugin to visually show hidden characters like spaces, soft hyphens, tabs, line breaks, or paragraph endings in focused writer, textarea, and text fields. The dimmed visual feedback is inspired by Adobe InDesign's hidden-characters mode, providing a familiar experience for content editors.

Cover image showing an example of the plugin in use

Legend

The plugin visualizes the following characters using a custom icon font:

Name Unicode Character Description
Space U+0020 Space Space Centered dot
Thin Space U+2009 Thin Thin Centered dot with chevron above
No-Break Space U+00A0 No break No break Centered dot with inverted chevron below
Narrow No-Break Space U+202F Narrow no break Narrow no break Centered dot with inverted chevron above
Em Space U+2003 Em Em Centered dot with em dash below
En Space U+2002 En En Centered dot with en dash below
Three-Per-Em Space U+2004 Three Three Centered dot with large dot above
Four-Per-Em Space U+2005 Four Four Centered dot with large dot below
Six-Per-Em Space U+2006 Six Six Centered dot with same-sized dot below
Hair Space U+200A Hair Hair Centered dot with two small dots above
Punctuation Space U+2008 Punctuation Punctuation Centered dot with dot below and vertical stroke above
Figure Space U+2007 Figure Figure Centered dot inside number sign
Medium Mathematical Space U+205F Math Math Centered dot with negation sign above
Zero-Width Space U+200B Zero width Zero width Dashed vertical stroke
Soft Hyphen U+00AD Soft hyphen Soft hyphen Vertical stroke indicating possible hyphenation
Tab U+0009 Tab Tab Two rightward arrows spanning the tab stop width
Line Break U+000A Break Break Negation sign representing hard line break
Paragraph End Paragraph Paragraph Pilcrow sign representing the end of a paragraph
Story End Paragraph end Paragraph end Number sign representing the end of the entire text block

Soft hyphens, tabulators, line breaks and paragraph endings are only rendered in writer and textarea, not on single-line <input> elements.

Requirements

  • Kirby 5+
  • PHP 8.2+

Installation

composer require grommasdietz/kirby-hidden-characters

Tip

If you don’t use Composer, you can download this repository and copy it to site/plugins/kirby-hidden-characters.

Quickstart

This plugin works out of the box with no configuration required.

Configuration

Developers building Panel plugins can register additional field components as overlay targets or customize the overlay element before insertion via the JavaScript extension API. See Extension API for details.

Documentation

Full reference for usage, contributions and maintenance lives in documentation.

Credits

The overlaying logic is adapted from Kirby Soft Hyphens plugin by @hansipete. Thank you!

Changelog

See CHANGELOG.md for version history and changes.

Security

See SECURITY.md for security policies and reporting vulnerabilities.

Contributing

See CONTRIBUTING.md for guidance and expectations.

License

MIT © 2024 Grommas Dietz