Would it be possible/difficult to get something similar working for gadgets on WMF wikis?
Helder
What would be really cool would be if the js content handler code detected code doc comments and formatted them nicely. Something similar to how back in the old days people used to have things like /* ==header == */ That would be picked up by mw and formatted as headers. But automatic and more complete.
-bawolff