JSFiddle, an online editor for web snippets.
Rather than posting entirety of all the files into forum post, just do the following :
- Go to JSFiddle (better to bookmark it if you can not remember it)
- Add your code to appropriate section : HTML, CSS, JavaScript
- Choose JS Framework if you’re using any.
- Press run and try to reproduce the problem you’re facing.
- Save to get a public URL.
- Share the URL on respective forums.
It’s absolutely not necessary to use JSFiddle, you can use JS Bin, CSSDesk etc whatever you’re comfortable with.
For SQL related issue, you can use SQLFiddle (Courtesy : Phil_Factor’s tweet), a tool for database developers to test out their queries.If you do not know SQL or basic database concepts, this site is not going to be very useful to you. In case you’re wondering in what cases it can help you out and how to use it, then you should read this. Check out the sample fiddle here.
Thanks to developers of JSFiddle and SQLFiddle, it’s definitely a solution of sharing a code on public forums and able to run it.