6

I use Evernote as my PKM; it's just so convenient and it's cross-platform. It's a pity that code in HTML page is not supported perfectly in Evernote.

It sucks if we paste code directly into Evernote; formatting and syntax highlighting will both be lost. I try to paste code into another website which support them (e.g., Github's "gist") and then copy from it, but this still remains useless.

Is there a better and convenient way to make Evernote support code formatting better so that I can use it as a code library?

6
  • 1
    Not supported perfectly and it sucks? Which one is it? Jul 30, 2013 at 15:36
  • What is the status quo of code support? How does it turn out when you use gists? Jul 30, 2013 at 15:38
  • 1
    Would this help Cheeatz Sep 25, 2013 at 23:52
  • @Raystafarian Cool!
    – Sam Su
    Sep 26, 2013 at 4:34
  • Does it do what you need? Should I put it as an answer? Sep 26, 2013 at 9:55

2 Answers 2

1

The method that I've found that works best for me (although it is a bit of a kludge) is to email my Evernote account the code as a .txt file, or alternately wrapped by the <code></code> HTML tags in the body of the email. I've got just over 3000 notes incorporating this sort of format. Most of what I've used this for is HTML, Javascript and Ruby on Rails files.

It seems that the email-to-note gateway treats the content just a little differently than just cutting and pasting it in my experience. The one caveat I would offer is that this method probably will not work if you are using XML structures, due to the native file structure of native notes. Good luck!

1
  • Ok, right before HTML in the first paragraph, it should have a less-than symbol, the word 'code', a greater-than symbol, the words "code here" and then a less-than symbol, a forward slash, the word 'code', and a greater-than symbol. I've not mastered how to insert notation like that here, so that's my bad! Good luck! Apr 28, 2014 at 23:45
0

The best way I've found is to use the Markdown Here plugin for Firefox/Chrome/Safari. It works only in Evernote Web, but you get the full power of Markdown right inside the Evernote editor. The syntax looks like this:

```java
int foo = 9;
```
1
  • 2
    At least link to the plugin.
    – ale
    Aug 17, 2017 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.