Why we hate banks

For those who do not know me, my name is Shahar Larry. I’ve spent most of my career as an innovation consultant and an entrepreneur. Over the past 6 months, I have been making my first steps into the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




6 Awesome Ways to Share and Embed Code in Your Articles

Gist, CodePen, etc.

When we write programming articles, we always unavoidably share some code. And a good code format can improve readers’ reading experience. The following are the tools I often use to share code.

The most common way to share code is GitHub Gist. It will help us store the code and create a unique URL that can share with everyone.

Example:

Link:

Tips: Please use the correct suffix for the file name so that Gist can display the code highlight correctly.

It will create beautiful images of your source code.

Example:

Link:

Both Gist and Carbon share code statically. If you want readers to preview your code interactively, then the following tools are more powerful.

Using CodePen, you can put HTML, CSS, and JavaScript code together and display the final page.

Add a comment

Related posts:

Finding and using information

Introduction to the participants and give an outline of the session. Emphasise that this session will allow students to think about their own work and put into practice some of the techniques and…

6 month review

My son is 6 months old today! Hallelujah! I thought I’d take this opportunity to jot down some things I’m happy we did, some things I regret, and some things that surprised me. I’m so happy we had a…

No filter. My poison of choice was instagram.

Embarrassing to admit, but for the past year, since quitting my former job and leaving my toxic relationships, I grew a habitual intense itch to check my phone at every moment of the day that it…