add plugin, code preview