Copy/Paste Unicode Character Which Translates Exactly As Enter Button


  1. Posts : 2,917
    Windows 10 Pro for the Bro
       #1

    Copy/Paste Unicode Character Which Translates Exactly As Enter Button


    Is there such thing?

    So, for example, let's say that I have a Notepad document open, and I have such example:
    Copy/Paste Unicode Character Which Translates Exactly As Enter Button-image.png
    Let's say that I select that whole line, and copy it to the clipboard. Now I go to, for example, exactly in this textbox area in which I am typing this post, and then I paste what's in the clipboard to here. How can I have it paste that line as two seperate lines, such as:

    Hello there.
    How are you doing?

    [without me having to left click after the period -> then pressing Enter on the keyboard.]


    Is there some sort of Unicode character that I can place after the period which, once I copy/paste, would translate the same way as if I pressed the Enter button on the keyboard?

    Thanks!
      My Computer


  2. Posts : 1,211
    Windows 10
       #2

    I will just write some things so the post makes sense you may know some of this but its just so it makes sense.

    When you type something in notepad there is /r/n on each new line but its invisible this is to do with ASCII which Unidcode is just extended ASCII.

    the problem i think is between what the user is writing and what they are wanting to write so if i was to open character map and copy paste ► symbol it will do so but if type the actual code for that in plan text then it will assume i am wanting to actually type U+25BA, literally.

    its to do with encoding. I don't know everything and it is convoluted at times.

    The better way would be to use BBcode. [Br][/Br] but the forum is not excepting this maybe an admin can chime in.

    I think also you would just write it in notepad the way that you want it to look. it will probably come out different in some cases but for the most part it will carry over because it will have line endings on each line.
      My Computer


  3. Posts : 1,211
    Windows 10
       #3

    hello
    1 line
    2 line
    3 line

    is copying over exactly how it writes, i think also that if you are to do a simulated line break in notepad its going to act as if you pressed the enter key anyway so its defeating the purpose because you can just write it out by pressing enter.

    i understand that its probably because you want to fill up short space so its easier for you to read back to yourself while writing something but you want to display differently in the outcome so it looks neater without minimal effort in manually formatting a text body.

    there probably is a way but its convoluted at times.

    Notepad ++ will probably be the answer.
      My Computer


  4. Posts : 2,917
    Windows 10 Pro for the Bro
    Thread Starter
       #4

    Okay thanks for the info.

    I completely forgot about Rich Text and such, yet I was looking for a specific example that actually has to do with copying from Notepad, specifically, to any other textbox location to paste to.

    yet, for my specific project that I’m working on, I found an alternate solution. Thanks for the reply.
      My Computer


  5. Posts : 776
    Windows 7
       #5

    I don't think you can do this with Notepad, WordPad, (or Notepad++?) because you can't enter a literal ctrl-M.

    With a Linux editor like vim, I can enter literals using the ctrl-V escape key.
    Code:
    Hello there.[ctrl-V][ctrl-M]How are you doing?[ctrl-V][ctrl-M]
    vim displays:
    Code:
    Hello there.^MHow are you doing?^M
    When you open this file in Notepad, it doesn't render the ctrl-M's.
    But if I highlight and paste it into this forum's text box, we get the desired output:
    Code:
    Hello there.
    How are you doing?

    So it's more a failing that your Windows text editor doesn't have an equivalent feature to escape literal characters.
      My Computer


  6. Posts : 1,211
    Windows 10
       #6

    There is some escape sequences with key commands in Windows Notepad but that requires pushing buttons. I don't know exactly how the functionality works but Notepad can interpret the file.

    like if you make a text file with that code in vim amd save it in the right format it should display in windows notepad in the same manner but i think to actually enter formatting on the fly is another story and is possible in some cases with commands but its not as easy as breaking out or using actual text commands.

    IDK tbh overall there is a lot of nuance to something like this and this is why intermediate text editors exist between a basic word processor and an IDE. Features of both but not as ingrained as an IDE is because it does not need to be that complex in those cases.
      My Computer


  7. Posts : 776
    Windows 7
       #7

    Notepad won't display ctrl-M's as a visible character, but a "ctrl-R & ctrl-M" pair renders as a weird up/down arrow. That symbol can be easily copied, but it feels like a lot of extra work.

    Copy/Paste Unicode Character Which Translates Exactly As Enter Button-image.png
      My Computer


  8. Posts : 1,211
    Windows 10
       #8

    Yeah nuanced

    i think because windows is ASCII like CRLF line endings use a text editor that can produce that i am not overall familiar with vims nuance but it is using scripted interpreted vim script for its formatting. The right encoding and file format will produce a readable file for notepad.You can set the encoding in vim to be dos compatible. Vim should be able to be set like this but i am not sure tbh i only use it on linux and in a basic form.

    Notepad++ and vim should be able to do visible line endings in CRLF that will carry over to most text processors. Not entirley sure with vim but probably.

    idk i don't mess with this stuff to often tbh because it does my head in sometimes. I would also like to know what their solution was.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:22.
Find Us




Windows 10 Forums