JH Woo 0 Posted February 28, 2018 Share Posted February 28, 2018 When I copy this code from visualstudio code: function checkDir(fname) { var dir = path.dirname(fname); var dirlist = dir.split("/"); var p = ""; for (var i in dirlist) { p += dirlist + "/"; if (!fs.existsSync(p)) { fs.mkdirSync(p); } } } And paste it into evernote, it becomes this code: function checkDir(fname) { var dir = path.dirname(fname); var dirlist = dir.split("/"); var p = ""; for (var i in dirlist) { p += dirlist + "/"; if (!fs.existsSync(p)) { fs.mkdirSync(p); } } } how can i fix it! i am using a mac sierra 10.12.6, and evernote version 7.0.1 (456248 App Store), 1.38.3824 Link to comment
macfixer 705 Posted February 28, 2018 Share Posted February 28, 2018 If "Enable code block" is enabled in Evernote's preferences (it's located under Software Update), then just type 3 backticks (` or the symbol underneath the tilde key ~ ) and a box will form in your note. If you then paste the code into that box, it will preserve the formatting in plain text. I hope that helps! Let me know if I can be of additional assistance. Link to comment
JH Woo 0 Posted March 5, 2018 Author Share Posted March 5, 2018 On 2018. 3. 1. at 12:52 AM, macfixer said: If "Enable code block" is enabled in Evernote's preferences (it's located under Software Update), then just type 3 backticks (` or the symbol underneath the tilde key ~ ) and a box will form in your note. If you then paste the code into that box, it will preserve the formatting in plain text. I hope that helps! Let me know if I can be of additional assistance. thank you so much for your reply. i updated my evernote and used your tip. but it still remain. ^^; ps) i use an editor "Visual Studio Code". Link to comment
Idea
JH Woo 0
When I copy this code from visualstudio code:
function checkDir(fname) {
var dir = path.dirname(fname);
var dirlist = dir.split("/");
var p = "";
for (var i in dirlist) {
p += dirlist + "/";
if (!fs.existsSync(p)) {
fs.mkdirSync(p);
}
}
}
var dir = path.dirname(fname);
var dirlist = dir.split("/");
var p = "";
for (var i in dirlist) {
p += dirlist + "/";
if (!fs.existsSync(p)) {
fs.mkdirSync(p);
}
}
}
how can i fix it!
i am using a mac sierra 10.12.6, and evernote version 7.0.1 (456248 App Store), 1.38.3824
Link to comment
2 replies to this idea
Recommended Posts
Archived
This topic is now archived and is closed to further replies.