Six great ways to show code

Time:2021-6-13

Most of the time, developers need to show code snippets, which may be used for demos, blogs or summaries.

So what are the code tools?

1. Polacode

https://github.com/octref/pol…

If you like vs code, then this one suits you!PolacodeIs a vs code extension, can be directly from theVSCodeGet a nice screen capture of the code.

Six great ways to show code

2. carbon.now.sh

https://carbon.now.sh/

Create and share beautiful pictures of source code.

Start typing or drag the file into the text area to get started.

You can alsoGitHubAndcarbonConnect.

Six great ways to show code

3. codeimg.io

https://codeimg.io/

The best part about codeimg is that they already have social media templates. So you don’t have to worry about the canvas size.

In terms of function, codeimg has more options than carbon.now.sh.

This is a Facebook template created using codeimg.io

Six great ways to show code

4. Pastie

http://pastie.org/

If you like minimalism and just want to share code as a link rather than a screenshot, Pastie is your ideal choice.

This is the perfect way to share code between friends / colleagues. Pastie generates links that are valid for 24 hours.

Note: Pastie uses HTTP instead of HTTPS. This means it lacks encryption and is not secure.

Six great ways to show code

5. Rust playground

https://play.rust-lang.org/

If you areRustDeveloper, then this will suit you.

Run on browser interfaceRustCompiler to try the language. Like Pastie, it can share snippet links.

Six great ways to show code

6. Silicon

https://github.com/Aloxaf/sil…

It’s for useRustLanguage implementation of carbon.now.sh.

SiliconCarbon.now.sh problem that can be solved:

  • You can’t work without the Internet and browser.
  • Cannot be used with shell( Although there is carbon now cli, its experience is not very good, especially when the network is not very good.)

Usage:

silicon main.rs -o main.png 

Six great ways to show code

Well, if you see it here, it’s true love. Do you want to add a star to my GitHub.

Pay attention to official account and join technology exchange group

Six great ways to show code

Recommended Today

Hot! Front and rear learning routes of GitHub target 144K

Hello, Sifu’s little friend. I’m silent Wang Er. Last week, while appreciating teacher Ruan Yifeng’s science and technology weekly, I found a powerful learning route, which has been marked with 144K on GitHub. It’s very popular. It covers not only the front-end and back-end learning routes, but also the operation and maintenance learning routes. As […]