Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:26:17+00:00 2026-06-13T18:26:17+00:00

In a web page textarea or div, I want to make whitespace visible, i.e.,

  • 0

In a web page textarea or div, I want to make whitespace visible, i.e., show spaces as little dots ∙, tabs as “⇥”, and newlines with another character as well. So that:

These are spaces
These   are tabs

will show up as:

These∙are∙spaces↵
These⇥are⇥tabs↵

This can be done with javascript that replaces the ” ” characters with “∙” and so forth, though that is a bit of a messy solution and you have to deal with catching the user typing spaces or pasting. Moreover if the user does a find (ctrl-f) for the text “These are” she will not find the text because the spaces are actually ∙ chars.

Instead, I have found what seems to be a cleaner solution: create a custom font in which the space is simply a visible character. It works great for spaces — no messy javascript required! However, I was not able to figure out if I could edit the tab character or the newline character in a font using the pretty bad free font editing software I found.

Does anyone know if it is possible to edit the tab and/or newline characters in a font, and if so, can you recommend a font editor program that would be easiest for me to do this in?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:26:18+00:00Added an answer on June 13, 2026 at 6:26 pm

    Intuitively, I would expect that replacing spaces by some glyphs works, with the usual caveats (downloadable fonts don’t work absolutely universally), but tabs and newlines are a different issue. They are not rendered so that a glyph is picked up from a font and displayed. Instead, they cause formatting actions, like leaving horizontal space and moving to start of next line.

    A quick experiment supports this analysis. Using FontForge, I replaced the space glyph in a font with a graphic glyph, and it gets displayed instead of the space. But doing the same for tab does not change anything. The tab just causes spacing, which depends on its position on a line, as defined in HTML specifications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have dynamic web page with JS. There is a <textarea> and a Send
I'm working on a PHP dynamic web page that has a <textarea> element that
On web page I display list of comments, I want to add an option
I am making the following call in my web page: <div id=comments> <fieldset> <h4>
I've one asp.net page and I want to load text into the textArea control
I have about 7 textarea s on a web page, all of them are
I am saving copy from a textarea on a web page into a sql
I'm creating a form on a web page, but I want that form to
I want my web page to beep whenever a user exceeds the maximum character
I want to obtain the exact details for the item on a web page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.