Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This post discusses how to streamline the other way - extracting code from a fragmented and longish SE answer but I imagine a two-way workflow like:

Fashion an answer/question in an SE-templated notebook with a submit button that converts both text/input cells into their SE equivalents. The notebook could also be effectively uploaded to SE by having the conversion include a link back to a public repository to which the original notebook is also sent.

share|improve this question
1  
There isn't a convenient/standardized way yet, but see a couple of ideas that Sjoerd and belisarius have been toying with here to attach a notebook as a gif (not convert to SE style) –  rm -rf Sep 13 '12 at 22:39
2  
I was also thinking about it, and this was one of the reasons I started the code formatter project, since appropriate code formatting is one of the essential parts. I have it high on my todo list to debug the current formatter and adopt it to SE format, and in general I think we are coming closer to the point when we accumulate enough tools to make such thing possible. –  Leonid Shifrin Sep 13 '12 at 23:04
1  
Try this NotebookPut@ ImportString[ Uncompress@ FromCharacterCode@ TakeWhile[ Flatten@ImageData[Import["http://i.stack.imgur.com/mV4FJ.png"], "Byte"], # != 0 &], "NB"] –  belisarius Sep 13 '12 at 23:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.