how to embed a code editor in a page?

前端 未结 3 893
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 06:17

Problem

I want to create a page with a code editor embedded in it.I looked up codemirror
but i am having problems using it as i am new to java script.
<         


        
3条回答
  •  北海茫月
    2021-01-01 07:09

    I know this is old post , This is how i did while developing online code-editor you can use ace-editor

    check this sample from ace

    
    
    ACE in Action
    
    
    
    
    
    function foo(items) { var x = "All this is syntax highlighted"; return x; }

提交回复
热议问题