4 ms·
Markdown Literary programming that don't break the syntax of any programming language https://github.com/linpengcheng/PurefunctionPipelineDataflow/blob/master/
by lincpa 8y ago
Markdown Literary programming that don't break the syntax of any programming language
https://github.com/linpengcheng/PurefunctionPipelineDataflow/blob/master/doc/markdown_literary_programming.md https://github.com/linpengcheng/PurefunctionPipelineDataflow...
advantages:
- It don't break the syntax of any programming language, you can compile directly. comment area markup method can be applied to any programming language and any markup (including Org,rst, asciidoc, etc.), which is the greatest advantage.
- you only need a single line of regular replacement preprocessing, then you can use any Markdown parse or converter.
- 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.
- 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.
the main purpose of the Code comment area markup method is to live Preview directly in the Code Editor Preview panel without exporting or any preprocessing.
I think:
- Literary Programming, Programming was the first, Literary was the second.
- The entire file is compliant with the programming language syntax and can be compiled directly.
- When writing (reading or refactoring) code files, I can modify and live preview directly in the editor without exporting or any preprocessing.
- Do not interfere with people who do not understand the markup language to read the code.