Displaying space caracters



  • Hi everyone,

    I’m looking for a way to display space in notepad++ like any standard text editor.

    Here an example to explain my issue:

    We are going to display the next sentence in both notepad++ and a standard text editor like the default windows one.

    “Hello, here i’m going to put 5 space caracters and then ending with a dot .”

    Result in standard editor:

    “Hello, here i’m going to put 5 space caracters and then ending with a dot .” --> the 5 space represent a certain amount of pixels

    Result in Notepad++:

    “Hello, here i’m going to put 5 space caracters and then ending with a dot .” --> The 5 space represent less amount of pixels.

    So if i try to display a text representating a table, the normal view would be: (i’m using hyphens for space due to this page rendering who is deleting extra spaces …)

    Name----Age-------From
    Kris--------22--------UK
    Jane-------34--------BE

    in notepad result is:

    Name Age From
    Kris 22 UK
    Jane 34 BE

    The view of columns are note readable by eyes …

    Anyone have an idea how to fix it ?

    Regards



  • Well,

    After some more research i finally figured it out … just by changing my font to another one with serif …

    That was so basic that i’m ashamed …

    Then topic RESOLVED



  • Even when marked as resolved maybe someone else might find this interesting.
    What you need is called a monospace font.
    Nice article on CodeProject site.

    Cheers
    Claudia



  • Hello, Christophe, and Claudia,

    The link given in your post, Claudia, is quite valuable ! On May 2014, on SourceForge forums, I posted a similar list of monospaced fonts, but yours is more detailed ! Thanks for sharing it :-))

    So, Christophe, you could, also, glance at my post, from the link below :

    http://sourceforge.net/p/notepad-plus/discussion/331753/thread/5c8c669b/#2143

    Cheers,

    guy038



  • For actually displaying the space characters see menu => View => Show symbol => Show white space and tab.


Log in to reply