                 return <a key={key} href={target} target='_blank'>{text}</a>
 
     render_code: (value, key) ->
-        <div key={key}>
-            code render not yet implemented
-        </div>
+        options = fromJS({mode:{name:value.mode}})
+        <CodeMirrorStatic
+            key     = {key}
+            value   = {value.source ? ''}
+            options = {options}
+            style   = {background:'white', padding:'10px'}
+        />
 
     render_tex: (value, key) ->
         <div key={key}>

{HTML, Markdown} = require('../r_misc')

{fromJS} = require('immutable')

exports.CellOutput = rclass
    displayName: "SageCell-Output"

        <div key={key}>
            raw input render not yet implemented
        </div>

    render_output_mesg: (elts, mesg) ->
        for type, value of mesg
