[codeeditor] add more options and add code editor preview: it does not work properly yet