coding an export function

start coding an export function to enable a easy way to copy all the
code from the editor