<style type='text/css' media='screen'> #editor { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } #textarea{display:none} </style> <script src='http://cdn.bootcss.com/ace/1.4.9/ace.js'></script> <script src='http://cdn.bootcss.com/ace/1.4.9/ext-language_tools.js'></script> <pre id='editor'></pre> <script src='ace.js'></script> <textarea id='textarea'> & html.replace(/<font.+\/font>/,'');