Results 1 to 9 of 9

Thread: Similar text editing apps to windows notepad

  1. #1
    Join Date
    May 2021
    Beans
    1

    Similar text editing apps to windows notepad

    Hello. I have recently installed ubuntu 21.04 and I'm a newbie. I was trying to edit the txt file that I had written in windows notepad. I had made some kind of a table in that file using dashes and the vertical bar symbol. It was all fine in notepad but now when i open it in ubuntu text editor, the table is messy, the vertical bars have moved but its still fine in notepad. What is the cause of this? is there an app for ubuntu that would open txt files in a format just like notepad itself without messing up that table? both of them are on 100 percent zoom. Thanks in advance.

  2. #2
    tea for one is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    May 2008
    Beans
    1,546
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Similar text editing apps to windows notepad

    Here is a selection to consider https://alternativeto.net/software/n...platform=linux

    I'm sure that there are more choices and other forum members will offer their suggestions.

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Similar text editing apps to windows notepad

    Is your file really a .txt from notepad or was it saved as an .rtf file which notepad can both read and write, if I remember correctly, but which many Linux text editors can not.

    Try abiword, a much faster and simpler word processor than LO Writer which will certainly open any .rtf files i have. There may be other applications as well but I'm not sure of how many or which they are.

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Similar text editing apps to windows notepad

    Welcome to the forum, @unitedmetalheads.

    I have tried simulating what you describe and cannot reproduce your problem. I created and saved a test text file in Notepad in Windows 10. This included pipe symbols (vertical bars) and hyphens separated by spaces and aligned on different lines. The file was displayed correctly and properly aligned when opened in the default text editor (gedit) in Ubuntu.

    Question: are you using the default font in Notepad? It defaults to a monospace font, just as gedit does, but have you changed this to another font?

    It would be easier for members to help diagnose the problem if you were to attach an example file to your next post. Prepare a file in Notepad that doesn't display correctly in Gedit, and upload it to your post using the attachment utility. You can access the attachment utility from the paperclip icon in the advanced message editor when replying.
    Ubuntu 18.04 Desktop Guide - Ubuntu 20.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  5. #5
    Join Date
    May 2010
    Beans
    1,367

    Re: Similar text editing apps to windows notepad

    If you use notepad++ in both you'll probably be OK.

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,879
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Similar text editing apps to windows notepad

    There are many text editors for Ubuntu, but your problem is probably not with the editor, but with the font. The characters have different width on your Windows Notepad than on the text editor you use in Ubuntu (and not all by the same ratio). It would be best to use a monospaced font. A plain text file doesn't save any font info, so it opens in whatever font you set as the default in your text editor.

    Another possible cause for the problem is tabs. If you use tabs for alignment, but use different tab settings in your text editors, alignment fails. Normally tabs align to multiples of 4 or 8 characters, if using a monospaced font.

  7. #7
    Join Date
    May 2010
    Beans
    1,367

    Re: Similar text editing apps to windows notepad

    Also, if its a tabled bit of information then use a spreadsheet.. Surely

  8. #8
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,879
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Similar text editing apps to windows notepad

    It depends. When you write your own software to process the table, plain text is much easier to parse than whatever spreadsheet format you may decide to use. And once you have more than a few thousand rows or want some more advanced calculations, spreadsheets are a bit of a kludge anyway.

    Or this is already a format that can be parsed by some other software, like a wikitext table.

    BTW, when moving plain text files back and forth between Ubuntu and Windows, keep in mind that both systems have different conventions for line endings or line separators. Most text editors know how to handle this automatically, but if you want to learn more, read this.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Similar text editing apps to windows notepad

    Geany is cross platform. There are other editors which are too.

    Of course, everyone knows that vim is the only editor anyone should ever need on any platform, but that could start a religious war. My router has vim, but no other editor. Vim in the hands of an expert is freakin' amazing.

    There are 2 commands to deal with the line ending stuff. dos2unix and unix2dos, but if you just use any of the Unix editors on Windows, this problem goes away. There must be at least 20 of them that are cross platform. Geany is light and handles all sorts of languages, supports plugins, and will allow compilers, linkers and debuggers to be hooked in, if you must.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •