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

  • Home
  • SEARCH
  • 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 8139081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:42:21+00:00 2026-06-06T11:42:21+00:00

Display whitespace characters in Eclipse is a simple trick , but unfortunately this applies

  • 0

Display whitespace characters in Eclipse is a simple trick, but unfortunately this applies only on Editor views.

enter image description here

Is there a way to display these characters in the Console view too? I would find it useful for checking if strings are correctly formatted. Any help?

  • 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-06T11:42:23+00:00Added an answer on June 6, 2026 at 11:42 am

    As there was a bit of confusion regarding the term “whitespace characters”, I will attempt to cover both possible instances.

    If you wish to display such things as new lines and tabs, Java Strings include special characters for these constructs. \n will display a newline (line break). \t will display a tab. \r is a carriage return. There are others, as shown in the table here, but these are the most common.

    Alternatively, if you intended displaying whitespace as a visible character, this is a different issue entirely. In this situation, I am assuming you wish to display a tab as an arrow or a space between words as a dot, like some text editors do. As far as I know, there is no built-in capability for this.

    You could, however, replace existing whitespace with a unicode character that you want to represent that type of whitespace. The Java String class supports the use of unicode characters; it would just be a matter of finding the one you wish to use to indicate, say, a tab and then replacing all instances of \t with that symbol.

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

Sidebar

Related Questions

Is there an easy way to display whitespace characters such as space and tab
Is there a way to display a commit on github.com without showing whitespace changes?
Is there any way to emulate the display of a pre element via CSS?
I've just upgraded to Kubuntu 11.10. After that the way Emacs represents whitespace in
I'm looking for a way to format (as in whitespace, newlines where suitable) a
I'm trying to trim a variable amount of whitespace in an image only the
I understand how to get Eclipse to insert spaces in place of tabs, but
I know this a common question but everything I found seems to remove white
I'm trying to trim JSP whitespace using the trimSpaces directive in my web.xml, but
See this example: http://jsfiddle.net/EwtaC/1/ The images are styled via display:inline-block. I understand that whitespace

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.