runsheng 6 Posted October 10, 2021 Share Posted October 10, 2021 I use Evernote to store some of my linux bash shell code. After switch to the 10+ version, some of the space in the code will be converted into "?" or other unrecognizable characters after copy to bash shell. Can I force some of my note part to use the "normal" ascii space only? This is a long lasting bug. I tested it in 10.22.3-win-ddl-public version and it was still there? Will you try to solve this issue? Any kinds of workaround are also welcomed. Best, RS Link to comment
Level 5 PinkElephant 8,196 Posted October 10, 2021 Level 5 Share Posted October 10, 2021 No, the only code function is the code block that can be inserted from the blue + menu. I don’t think it does restrict to ASCII, and there are no options. Use an editor that allows to choose the type of text coding you need, attach the files to a note. 1 Link to comment
Level 5* DTLow 5,737 Posted October 10, 2021 Level 5* Share Posted October 10, 2021 10 minutes ago, runsheng said: I use Evernote to store some of my linux bash shell code. If you're using Evernote's default format for notes, it's .enml format (basically html) I prefer to store my code in text format, as a note attachment file 1 Link to comment
Mike P 2,692 Posted October 10, 2021 Share Posted October 10, 2021 25 minutes ago, DTLow said: I prefer to store my code in text format, as a note attachment file And in V10 files with txt extension appear inline so no need to open the attachement to view it. 2 Link to comment
runsheng 6 Posted October 11, 2021 Author Share Posted October 11, 2021 9 hours ago, Mike P said: And in V10 files with txt extension appear inline so no need to open the attachement to view it. Thank you all very much. I tried adding txt file, and it appears inline in both legacy and V10 version. Adding the code as txt format can solve the issue for the future. BTW, do you have a clue that why some space will remain normal plain txt and the others are other formats? I am still working on wrapping some of my old notes. Link to comment
Level 5 PinkElephant 8,196 Posted October 11, 2021 Level 5 Share Posted October 11, 2021 EN uses a variant of HTML (called ENML) to code the notes. Every note practically is a mini website. Somit may be that the text is embedded into (invisible) code. I found that usually copying text and then pasting it „simplified“ or „paste and adapt format“ to a text editor strips the copied snipped from all code. Often the most basic editor does the best job on this, because it has not HTML interpreting capability, that many advanced editors today have by default. 1 Link to comment
runsheng 6 Posted October 11, 2021 Author Share Posted October 11, 2021 Thank you. Glad to know these information. But the code lines copied from gVim/sublime have this issue too. I also want to ask why these spaces in legacy can be copied out as plain txt but not in V10? Because the ENML format is changed? I usually directly typed in these codes with legacy versions of Evernote (mostly in V4 to V6 I guess). Evernote was a light txt editor for me when I do not want to use vim. It worked well until V10. Link to comment
Level 5 PinkElephant 8,196 Posted October 11, 2021 Level 5 Share Posted October 11, 2021 Think of v10 as of a browser, that shows the app instead of its own UI. It has the benefits of it, but as well the trapdoors. Better to use a clean editor for code. I use COT Editor, but I think it is Mac only. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now