Show Invisibles: Lone spaces

Open
#1,611 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by locating the PrismJS Show Invisibles implementation and reading how spaces are currently classified. Compare its behavior with the VS Code example in the issue. Done means lone spaces remain in class space and also receive a lonely class, while other spaces keep their existing behavior.

Written by the indexing model from the issue text.

Description

enhancement plugins

I'd be great to be able to hide lone spaces as VS Code does.

I think that such spaces should still be of class space but also have an additional class like lonely to indicate that it is surrounded by non-space (\S) characters.

image
(No visible space between * and a, and a and b.)

Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PrismJS/prism

All issues in PrismJS/prism

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.