![share code snippets share code snippets](https://res.cloudinary.com/practicaldev/image/fetch/s--v4Ek9rYn--/c_imagga_scale,f_auto,fl_progressive,h_500,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/i/dvm0i41tqgitjmcpy4bw.png)
If you are going to use these snippets in your book then you have to think about the size of your text, especially if it’s an image (since enlarging the image will not make it more readable, but more blurry). Also, it allows you to control every visual aspect of your code snippet from background to font size.Įxample images of different theme styles in snappify
![share code snippets share code snippets](https://slackhq.com/admin-slacktips/wp-content/uploads/sites/2/2019/01/1_Shortcut-create_code-IA-update@1x.jpg)
Snappify provides a lot of color themes that can be used to style your code. Aside from aesthetics, these two are helping your code to be more humanly readable and understandable. For that part, we have to use comments to properly describe our code.Īlso, to make your code more readable you have to use indentation and color themes. Every code snippet that you share must tell its story and be understandable to everyone: from absolute beginners to experts. They need to be styled as any other part of the code which means: indented, commented, and lately, colorized. Even though these are not supposed to be changed or copied, they’re still supposed to look nice. While static picture code snippets can be found on social media, like Twitter or Facebook.
![share code snippets share code snippets](https://i1.wp.com/dotnetcrunch.in/wp-content/uploads/2020/03/top-10-visual-studio-keyboard-shortcuts.png)
Static textual code snippets can be found in books. Those kinds of code snippets can be in two forms: text and picture. Static code snippets are ones that are not supposed to be changed and/or copied directly. Accessible code snippets, where the user is able to easily copy the code and reuse it somewhere else.Static code snippets, which act as a nice presentation, but where the viewer can’t interact with the code itself.Especially with the rise of social media that kind of action became really popular. Whether it is for books, blogs, or Twitter, developers have to need to share code snippets for different kinds of reasons. Sharing code snippets is as old as the code itself.