Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block should show invisible characters #11380

Closed
sarahmonster opened this issue Nov 1, 2018 · 3 comments
Closed

Code block should show invisible characters #11380

sarahmonster opened this issue Nov 1, 2018 · 3 comments
Labels
[Block] Code Affects the Code Block [Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.

Comments

@sarahmonster
Copy link
Member

In order to make it easier for people to write code in the code block and see what they're doing, it would be nice to show invisible characters (spaces, tabs, returns, etc) in a subtle way, like (most) code editors do.

Additionally, it would be good if we could allow people (especially WordPress people) to type tabs into the field, but I suspect this would cause some accessibility headaches and thus totally isn't worth it.

@sarahmonster sarahmonster added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks [Block] Code Affects the Code Block labels Nov 1, 2018
@sarahmonster sarahmonster mentioned this issue Nov 1, 2018
6 tasks
@paaljoachim
Copy link
Contributor

Hey Sarah.

It looks like this issue got forgotten about.
What should we do with it?

Have a great day!

@holzee
Copy link

holzee commented Aug 25, 2023

Needed for code blocks. Would love to have invisible characters in paragraph blocks too. Would be helpful for editing ! (Non-breaking spaces i.e.).

@mtias
Copy link
Member

mtias commented Jul 2, 2024

For code blocks, this will probably be part of syntax highlighting (#5614, #10423) more than a change on the block itself. Not planning on adding this for paragraph, but could be a cool plugin.

@mtias mtias closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Code Affects the Code Block [Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants