nl_tokens: Decodes base64 string back to file .
pl_tokens: function decodeFromBase64 ( editor , data , pos ) { // ask user to enter path to file var filePath = String ( editor . prompt ( 'Enter path to file (absolute or relative)' ) ) ; if ( ! filePath ) return false ; var file = require ( 'file' ) ; var absPath = file . createPath ( editor . getFilePath ( ) , filePath ) ; if ( ! absPath ) { throw "Can't save file" ; } file . save ( absPath , require ( 'base64' ) . decode ( data . replace ( / ^data\:.+?;.+?, / , '' ) ) ) ; editor . replaceContent ( '$0' + filePath , pos , pos + data . length ) ; return <mask> ; }