DEV Community

Discussion on: Emojify – Create your own emoji with Deep Learning

Collapse
 
grahamthedev profile image
GrahamTheDev

This looks really interesting but because they are pictures of code rather than code blocks they are both unreadable (as dev.to compresses them) and also very hard to work with (as if I could read them I certainly would be put off at having to manually type every line out).

May I suggest you use code blocks.

You can include code inside triple backticks so it shows as an actual code block.

So you write three backticks, then the language (so dev.to parser knows how to apply syntax highlighting to the code), on the next line copy your code in and then after it close it with three more backticks

function demo(){
   return "this is how your code would show up!";
}
Enter fullscreen mode Exit fullscreen mode

This makes it much easier to read but more importantly, it ensures people using a screen reader can access the same information as everyone else!

The below fiddle shows the format, it is super easy!