kylescousin 4 Posted September 4, 2014 Share Posted September 4, 2014 Hi, Evernote messes up html code that gets pasted in. At first I thought there were some hidden chars in the copied text causing this, but when pasting in notepad++ for example, it does show correct.So here is the text I copy from the editor:<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>Then paste it in evernote, it turns into this: < button type= "button" class= "navbar-toggle collapsed" data-toggle= "collapse" data-target= "#bs-example-navbar-collapse-1" > <span class= "sr-only" >Toggle navigation</span > <span class= "icon-bar" ></ span> <span class= "icon-bar" ></ span> <span class= "icon-bar" ></ span></button ></nav>Look at all the spaces that are added. Can this please be fixed or offer a workaround. When pasting as plain text it pastes correctly, but then all the color coding is gone, and I want to keep that. Link to comment
Level 5* jefito 5,586 Posted September 4, 2014 Level 5* Share Posted September 4, 2014 Which Evernote client are you referring to? Windows? Mac? Web? Android? iOS? Link to comment
kylescousin 4 Posted September 4, 2014 Author Share Posted September 4, 2014 Which Evernote client are you referring to? Windows? Mac? Web? Android? iOS? Forgot to mention, it's the windows desktop client.The editor I'm copying from is PHPStorm. Link to comment
Level 5* gazumped 10,338 Posted September 7, 2014 Level 5* Share Posted September 7, 2014 Evernote doesn't (yet) play well with code, though we were being promised editor enhancements at one stage. Short term workaround is to use another app that will support your formatting, and save those files in the note as well as / instead of the bare code. It's one extra step to open the attachment to copy/ paste into or from, but at least it doesn't involve extra editing. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.