Jump to content
  • 0

[2023.01] Better Detection and Clipping of "Hosted with Love by GitHub" Blocks as Code (Not Tables)


Pavel Sapehin

Idea

Hi,

Many web-pages that contain code-blocks hosted by github (e.g. this medium article) are clipped as tables in evernote. For example, this is the original code block:
529959758_Image4.png.add10dd028e7f5ea32b9d688037be6d6.png

And here is how it looks after clipping:

1064393099_Image3.png.7298bb4eef8bce064f0a84bd4f3fb07d.png


Please, wouldn't it be better to clip them as the actual code-blocks?

Link to comment

3 replies to this idea

Recommended Posts

  • 0
  • Level 5

An EN note is like a little website. The tables are HTML constructions.

If the website you copy from uses the same HTML code as EN for its tables (even if it shows differently), it will build a table from the code, holding the snippets of content.

If you want to get the code only, insert the "Paste & adapt style" shift-cmd/ctrl-V, then select it and click on code block in the blue + menu.

Link to comment
  • 0
2 minutes ago, PinkElephant said:

An EN note is like a little website. The tables are HTML constructions.

If the website you copy from uses the same HTML code as EN for its tables (even if it shows differently), it will build a table from the code, holding the snippets of content.

If you want to get the code only, insert the "Paste & adapt style" shift-cmd/ctrl-V, then select it and click on code block in the blue + menu.

Thank you, I'm aware of that. This is a nice trick, but it requires manual efforts per each block on a web-page. Also, as a full-stack web-developer and chrome extension developer I know that it's possible to "transform" the page content (similarly to what "Simplified Article" mode does in the web-clipper).

Link to comment
  • 0
  • Level 5*
13 minutes ago, Pavel Sapehin said:

Please, wouldn't it be better to clip them as the actual code-blocks?

Hi.  We're mostly users around here.  I don't know how difficult it might be to detect and transform specific elements of a given page,  or how likely Evenote is to consider this a worthwhile feature.  You could suggest this in the Feature Request area of the forums to gain some votes in favour - a high enough number might persuade the company to schedule the work.  I'd recommend you contact Support too with some URLs of affected pages - it's all very well to raise queries in a forum which will be visited at some time by Evernote staffers,  but contacting them direct puts the suggestion in their hands immediately. There won't be any overnight changes,  so work arounds are good too... but the new management in Evernote are AI experts,  so if there's a  way to train an AI to spot code blocks I bet they can build a system (if it makes business sense.)

  • Like 1
Link to comment

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
×
×
  • Create New...