Finally after months and months I’ve found a neat, clear, formatted and even version controlled way of sharing code snippets.
Gist allows you to have language specific formatted code and embed it in any HMTL page or in a free blog like this one.
Here below is an example!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); | |
} | |
} |
Hope this post helps people out there encouraging them to move all the embedded code that for years we’ve been raw pasting in our blogs, tidy them up and re-add in a cleaner, clearer way!
[…] Gist a github feature for sharing language specific formatted code. […]