Jump to content

Richard Bronosky

Level 2
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Richard Bronosky

  1. On 2/28/2020 at 6:58 AM, CherryDT said:

    I have a workaround now. I hope it can help others as well.

    I wrote a script that converts the plain text in the clipboard to HTML that is accepted by Evernote as a code block. You can then easily paste the code without messing up formatting.

    If you paste it outside a code block, you will get a code block with your code inside.

    If you paste it inside an existing block, you will also get the code pasted correctly, however it will insert one extra line break before it. You have to remove it manually.

    1. Install AutoHotkey
    2. Download the WinClip library
    3. Get my script
    4. Place evernote_code_wrap.ahk (my script), WinClip.ahk and WinClipAPI.ahk (from the WinClip library) next to each other in a folder
    5. Run evernote_code_wrap.ahk

    Now, you can press Ctrl+Alt+V to convert and paste. (There is also Ctrl+Alt+P to just convert inside the clipboard without immediately pasting.)

    You can set up AutoHotkey to load the script automatically when you start your computer.

    I used the idea from CherryDT to create a bash script that will work for users of macOS.

    https://gist.github.com/RichardBronosky/c2d609b721df3ecc771c4980e9f6b63f

    But it does little to fix the frustration that comes from even needing such a workaround.

×
×
  • Create New...