I am using the Code Mirror plugin to edit HTML source of a page. The HTML code is fetched from database and set as value in Code Mirror. But, after setting the value it is displayed in the same format in which it was saved in the database. How can I display it in proper format? Thanks in advance.
标签:
codemirror
相关问题
- Normalizing the CodeMirror OnKeyEvent with jQuery
- How to undo selected / highlighted text when click
- How to type using cypress .type() inside the codem
- Does codemirror provide Cut, Copy and Paste API?
- Custom syntax highlighting in jupyter notebook
相关文章
- The height of the code-mirror block are not the sa
- Codemirror content not visible in bootstrap modal
- Changing jupyter's matching parenthesis color
- How to Access codemirror text area value in Angula
- CodeMirror textarea.getAttribute is not a function
- Codemirror Auto Format after setValue
- CodeMirror HTML mode not working
- React Hooks useState+useEffect+event gives stale s
There is a function called
autoFormatRange
This fragment from the CodeMirror Group might be what you need:
http://codemirror.net/2/demo/formatting.html