- Posted On 17 September 2014
- In Programming
StackExchange has introduced a new feature called "Stack Snippets" on all their code related community sites which will help to post question or answer in more efficient way i.e. by adding live runnable code snippet.
As of now, to embed a live code peoples are using third party sites such as jsFiddle, .NETfiddle etc. and these sites provides lots of feature to share a live code. But some of the problems which had discussed on StackExchange before that sometimes when link to such third party gets expired then it makes a answer worthless and also it was going difficult for them to maintain revision history as code is on thrid party site. So to overcome these problems this new feature has been introduced.
Though "Stack snippets" provides facility to embed live code in post still use of jsFiddle or similar site is not restricted as it’s a new and also as limited feature as compared to jsFiddle and similar sites.
To embed a stack snippet you ned to click on the highlighted new icon on top of the editor like below.
To know in detail how you can embed a code snippet you can visit this step by step guide provided here at StackExchange Blog.
Hope this simple informative post have benefited you. Feel the joy of sharing by sharing this information with your friends. Thanks.
Swagger - Powerful Opensource Framework for RESTful API
With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability. Swagger Editor allows you to generate code, documentation with ease.
Visual Studio Code - Lighweight but powerful source code editor available for Windows, OS X and Linux
How to post JSON string as a string in jQuery AJAX
Know how to post JSON String as string to the action method of controller in MVC.
How to call click or any event only once in jQuery
Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.