• Announcements

    • gbarry

      Reach out to Evernote support on Twitter @EvernoteHelps   09/20/2016

      We've been leveling up our support across all channels. If you're active on Twitter, try your hand with our @evernotehelps feed. It's helmed by a crack team out of Austin, TX who are here to answer your questions. They're generally active from 7am-4pm CST.  https://twitter.com/evernotehelps  
areese801

Code Block in Evernote for Mac ?

Recommended Posts

Hi all - 

I primarily use Evernote for Mac (v6.7.1) and have noticed that there is a code block item under: Highlight Text > Right Click > Format > Code Block.  It doesn't seem to do anything though, which makes me sad.  I understand that code block formatting was introduced into Evernote web recently and it works great there..  I just tend to use the app more.

Does this menu item in the Mac app actually do anything?  Am I missing something obvious to be able to format code?

AR

Share this post


Link to post
2 hours ago, briancaldwell said:

It works when you highlight some content, then click the code block formatting tool.

Hmm.  Not for me.  It doesn't do anything.  

To clarify:  When you say the "code block formatting tool" are you talking about that under "Highlight Text > Right Click > Format > Code Block", or some other menu item (like an icon) ? 

Like I said, it works fine for me when I use evernote on the web, but not in evernote for Mac v6.7.1.

Share this post


Link to post

Codeblock is not working on Mac, it works on Windows though.

Evernote version 6.7.1

OSX X El Capitan version 10.11.5

13ygWMebNw.gif

Share this post


Link to post

This is broken for me as well (Evernote 6.7.1, OS X 10.11.6). Running to the web version to perform my code formatting is getting old, please fix!

Share this post


Link to post

Hello. I am also having trouble even seeing the code block option. Highlighting text and right clicking shows no such code related option. On the toolbar menu, under format > style, I see no such option. But when I add a code block using the web version of Evernote, it does show up as a code block on my local machine when I synchronize the notes. So I can see, but not create.

Is there a bug report filed for this? Or is this a feature that has been deprecated for some reason?

I am running Evernote Version 6.8 (453749 App Store) on Mac OS Sierra 10.12 Beta (16A294a).

Thank you,

Marcus

Share this post


Link to post
On 8/19/2016 at 4:14 PM, MarcusC said:

Hello. I am also having trouble even seeing the code block option. Highlighting text and right clicking shows no such code related option. On the toolbar menu, under format > style, I see no such option. But when I add a code block using the web version of Evernote, it does show up as a code block on my local machine when I synchronize the notes. So I can see, but not create.

Is there a bug report filed for this? Or is this a feature that has been deprecated for some reason?

I am running Evernote Version 6.8 (453749 App Store) on Mac OS Sierra 10.12 Beta (16A294a).

Thank you,

Marcus

Hi @MarcusC, welcome to the Forums!

You should be able to enable the Code Block feature in the application's Preferences:

  • Open Evernote for Mac
  • From the menu bar, select Evernote > Preferences > Software Update
  • Check the "Enable Code Block" box

Preferences_and_Evernote_Premium.png

EDIT: If you are using the version of Evernote downloaded from the Mac App Store, you will need to reinstall to the version of the application downloaded from our website to access the Software Update tab.

I hope that helps!

  • Like 6
  • Thanks 2

Share this post


Link to post

Hi @BSR and thanks for the assistance!

When you posted that screen shot, it gave me a much needed clue. Turns out the version of Evernote (6.8 453749 App Store) that I had been using from the App Store on my MacBook did not display the "Software Updates" tab at all. So I hadn't been seeing that option. I downloaded the latest package (6.8 453748 dmg) from Evernote's website and installed it over the App Store version. Now I can see the tab and the "Enable code block" option. And code block is working successfully now on my machine. The only question remaining is if Evernote developers should be made aware that the App Store version, which is a later release according to the version number, is dropping the "Software Update" tab, so maybe they should move the "Enable code block" box to a different tab (I suggest "General")? Screenshots attached.

Best regards! - Marcus

Slide1.gif

Share this post


Link to post
2 hours ago, MarcusC said:

I downloaded the latest package (6.8 453748 dmg) from Evernote's website and installed it over the App Store version. Now I can see the tab and the "Enable code block" option. And code block is working successfully now on my machine.

@MarcusC wins!  I followed the steps he outlined and I can now use the code block feature in evernote for Mac.

Share this post


Link to post
6 hours ago, MarcusC said:

Hi @BSR and thanks for the assistance!

When you posted that screen shot, it gave me a much needed clue. Turns out the version of Evernote (6.8 453749 App Store) that I had been using from the App Store on my MacBook did not display the "Software Updates" tab at all. So I hadn't been seeing that option. I downloaded the latest package (6.8 453748 dmg) from Evernote's website and installed it over the App Store version. Now I can see the tab and the "Enable code block" option. And code block is working successfully now on my machine. The only question remaining is if Evernote developers should be made aware that the App Store version, which is a later release according to the version number, is dropping the "Software Update" tab, so maybe they should move the "Enable code block" box to a different tab (I suggest "General")? Screenshots attached.

Best regards! - Marcus

Slide1.gif

 

@MarcusC; the Mac App Store version is slightly different from the version downloaded directly from our website. While they both are functionally identical, the App Store version may have minor variations in UI elements/functionality (due to the software approval process for apps submitted to the Mac App Store).

In this case, there isn't a Software Update tab in the App Store version as that version is updated through the App Store.

Great catch, thanks for bringing this up! I've amended my original post to include this information.

Share this post


Link to post
On 8/22/2016 at 1:25 PM, BSR said:

 

@MarcusC; the Mac App Store version is slightly different from the version downloaded directly from our website. While they both are functionally identical, the App Store version may have minor variations in UI elements/functionality (due to the software approval process for apps submitted to the Mac App Store).

In this case, there isn't a Software Update tab in the App Store version as that version is updated through the App Store.

Great catch, thanks for bringing this up! I've amended my original post to include this information.

We understand, the app store version is different.  

What we don't understand, and what we'd like to have developers address, is why the app store version (therefore) doesn't support the code block feature.  Can't this preference be put somewhere else?

Share this post


Link to post
3 minutes ago, dec4106 said:

What I don't understand is why there's a Configuration option to turn the feature on / off???  

The Code Block was introduced in Beta testing, and Evernote gives us the option to turn these feature off if they become unworkable
afaik  This feature has proven to be stable and desired - we should soon see it out of beta

Share this post


Link to post

Surely the Code Block option should not appear in the formatting menu before the feature has been enabled? It makes it extremely confusing.

  • Like 1

Share this post


Link to post

I agree with @kingds, it makes no sense to display an action (Format > Code Block) that doesn't do anything if this feature has not been enabled. I am using the App Store version and from my perspective, there is an action that's completely broken, since Format > Code Block is a noop.

Share this post


Link to post
On 10/26/2016 at 0:48 PM, Daniel Serodio said:

I agree with @kingds, it makes no sense to display an action (Format > Code Block) that doesn't do anything if this feature has not been enabled. I am using the App Store version and from my perspective, there is an action that's completely broken, since Format > Code Block is a noop.

I second this. I just went through this whole mess – first confused as to why the "Format > Code Block" action didn't work, then searching around for a while before finding this thread, then going through the process of deleting the App Store version & installing the website version, and enabling the feature.

If it doesn't work in the App Store version, the option should not be in the menu. Period. It's terrible UI to have an option that's disabled / doesn't work and there's no way to enable it. If it must be behind an option then put that option in a preferences section that makes sense ("Software Update" does not), and add it to the App Store version, too – I can't imagine the app is being blocked because of that option/checkbox. And if the checkbox is not checked, then remove the menu option, or prompt the user to enable it once they've selected it. Don't just include a menu option that does nothing. The fact that this has to be pointed out – and that it hasn't been fixed after it was pointed out over 5 months ago, and present for over 11 months – makes me question Evernote's UI/dev teams' abilities.

Share this post


Link to post
15 hours ago, Mike Figueroa said:

It would be great if we could choose how a code block is formatted (i.e. font, background color, etc.)

5899796b19b82_ScreenShot2017-02-06at23_36_50.thumb.png.a026017f3f3b897cab94aed05d9a3e47.png

Just saying'...

Agreed. Or even better, syntax highlighting from something like pygments. I know, it's a stretch when we can't even customize the code block format; not to mention the basic code block we do have has been behind an unchecked preference for almost a year; but if Evernote wants Developers to use their app for their code notes, it's a must have feature. If Quiver finishes their iOS app before Evernote gets code syntax highlighting, there's going to be a massive exodus of developers – me included.

  • Like 1

Share this post


Link to post

It's been a while since I've used Evernote. I've been using Notes for a long time.

That is until I had to create code blocks.

So I reinstalled Evernote downloaded from the Evernote website. Works now!

Share this post


Link to post

I've given up on Evernote for code note taking. Black-and-white code isn't very helpful, and not being able to set a custom format for it is too limiting. I've moved my notes into a separate project in SublimeText (my daily code editor). Each "note" is just its own file, and "notebooks" are folders. Comments I want to make are just standard code comments. Everything's easily searchable and syncs via DropBox. When using SublimeText in this way – with all my code notes in their own project, and my file list on the left – it mimics Evernote's functionality, while adding syntax highlighting in real time, and even includes code autocomplete. It would be nice to have those notes searchable with my other notes in Evernote, but it just doesn't work for code, so I had to find another option. Once I update my MacOS I'll probably move all my Evernote notes into the Apple Notes app (I'm still on Yosemite, which has the old Notes app, which is very limited, but the new version can compete head-to-head with Evernote).

Share this post


Link to post
38 minutes ago, Johnny5k said:

I've given up on Evernote for code note taking.

At what point did you see Evernote as a tool for coding

I never did understand the "code block" thing, but Evernote would not be my choice

Share this post


Link to post
1 minute ago, DTLow said:

At what point did you see Evernote as a toll for coding

I never did understand the "code block" thing, but Evernote would not be my choice

Well consider Evernote is where I usually keep notes of all types – since that's the whole point of the app – it's where I would drop code snippets and write notes about them. Doesn't really seem like a stretch to me. You can drop in full web pages, formatting and all, so why not code? I realize it isn't the primary target for Evernote, but obviously there's an interest, as evident by this thread (and many others).

Besides, you're posting in a thread specifically about Evernote's "code block" feature – which they already include, albeit in a confusing, hard-to-use, and feature-incomplete manner.

Share this post


Link to post
32 minutes ago, Johnny5k said:

it's where I would drop code snippets and write notes about them

I also store code snippets and notes; I agree Evernote is a good place for storage

Yes, there's no syntax highlighting.  I either copy/paste or have an attached file, and I view the code in my dedicated editor app (Textastic)

Share this post


Link to post

Hey,

i came with the same problem and ended up in writing a microservice that uses a modified pygments for evernote.

http://evercode.level96.de/

it supports all languages which pygments supports.
http://pygments.org/docs/lexers/

You can choose between several styles like monokai, emacs etc.

It comes with no registration, just login with your evernote-account via oauth,
choose a style a filetype, paste a code preview and submit to your evernote account.
In the most case line number is fine, but in some cases it may look broken (Evernote Web-Client), so deactivate it.

Service.thumb.png.99683006d46780c19b89a0c349813f98.png

 

The Service doesn't store any data.
The main Logic is in the screenshot, the data is save in a django session, which expires after some hours.
You might login with evernote again if your session ends.

If you are interesst in the code or want me openSource it, just tell me.

Its completely free, so i don't guarantee for any availabilty, broken stuffs or SLA.

May it help you to get more productive with evernote and your code.

Regards
 

  • Like 2

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now