     pyx    : 'python'
     r      : 'r'
     rmd    : 'gfm2'
+    rnw    : 'stex2'
     rst    : 'rst'
     rb     : 'text/x-ruby'
     ru     : 'text/x-ruby'

        @path = s.head
        if @path == ''
            @path = './'
        @filename_tex  = s.tail
        @base_filename = @filename_tex.slice(0, @filename_tex.length-4)
        @filename_pdf  = @base_filename + '.pdf'

    dbg: (mesg) =>


    # Editors for private normal editable files.
    register(false, HTML_MD_Editor,   html_md_exts)
    register(false, LatexEditor,      ['tex', 'rnw'])
    register(false, Terminal,         ['term', 'sage-term'])
    register(false, Media,            ['png', 'jpg', 'jpeg', 'gif', 'svg'].concat(VIDEO_EXTS))

