DEV Community

Discussion on: How to create a navigation using Flexbox

Collapse
 
jamesncox profile image
James Cox • Edited

Hi Pinky, this is a really cool idea!!

I do have one suggestion, especially if you plan on doing a series of posts like this, I suggest using the built in markdown for code block with three backticks. I included a screen shot for reference. This way a user can highlight and copy portions of your code examples!!

dev-to-uploads.s3.amazonaws.com/i/...

If you have any questions let me know!

Collapse
 
pinkylalwani profile image
Pinky Lalwani

I was actually confused how to use build in markdown in my post as this is my very first post. Thank you! I will keep this in mind next time. 🙌

Collapse
 
jamesncox profile image
James Cox

You’re welcome! I didn’t know how to do it my first post either and someone else had to show me as well 😅

Collapse
 
link2twenty profile image
Andrew Bone

In that same vein you host your code somewhere like JSFiddle then take the URL and put it in a tag like this.

{% jsfiddle lhttps://jsfiddle.net/ink2twenty/f16voc7q/ result html css %}

There's lots of tags like this you might find helpful in the Editor Guide. 😊

Collapse
 
pinkylalwani profile image
Pinky Lalwani

Thanks Andrew! This is a very cool way to put code in my post.🥺
How to put YouTube video link in my post?

Thread Thread
 
link2twenty profile image
Andrew Bone
{% youtube dQw4w9WgXcQ %}

Thread Thread
 
pinkylalwani profile image
Pinky Lalwani

🙌

Collapse
 
jamesncox profile image
James Cox

Oh this is great!!! I assume Ican do this with my Codesandbox examples also.

Thread Thread
 
link2twenty profile image
Andrew Bone

Yep! That one's just:

{% codesandbox sandbox_name %}
Thread Thread
 
jamesncox profile image
James Cox

Nice one, thanks Andrew!