PaperAid is a tool supporting the writing of papers. It provides support for writing papers containing a lot of code in situations where this code changes often (causing a versioning problem). PaperAid also allows the creation of documents in different textual formats like LaTeX and HTML.
Further info: See here.
Making an integrated outline + flattened output editor