4 ms·
I mean, when we edit the code, we can preview the effect in real time. Editing literary code has a live preview like most markdown editors. The editor has a Li
by lincpa 8y ago
I mean, when we edit the code, we can preview the effect in real time. Editing literary code has a live preview like most markdown editors.
The editor has a Live Preview panel to do the following work:
1. Get the current text
2. replace the `\r\n\;` with `\r\n` (note: line breaks and line comment characters of the current file can be obtained from the editor’s API. line comment characters of clojure(lisp) is `;`)
3. live Preview markdown string
4. Easily export directly to PDF or HTML.
Its advantages:
1. Don't break the syntax of any programming language, you can compile directly.
2. you only need a single line of regular replacement preprocessing, then you can use any Markdown parse or converter.
3. Support any code editor that supports Markdwon Live preview, allowing the source code of any programming language to become rich text in real time. In the code's comment area, You can use the markdown to draw flowcharts, tables, task lists, and display images on the live preview panel, enhance the readability of your code.
4. If you extend the Markdwon tag, you can implement the eval code, print result, display data visualization and other instruction tags, to achieve live programming, live test.