Insert code into notes from file automatically

The desire is to be able to insert blocks of code directly from the code file into the notes, as there are times when it is necessary to place blocks of code in the notes to be able to explain them against, but also to be able to edit and run it quickly in tools such as VSCode.

Without such a mechanism, it would result in the need to maintain code in two places at once.

A Jupyter-like mechanism is a good idea, but it might be a little too difficult to implement.



类似 Jupyter 的机制是个好主意,不过实现起来可能太困难了些。

Seemingly also solved by this plugin… Open code files of various types with syntax highlighting - #2 by Y-jiji

It is likely to present in community plugin list later. (PR submited today)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.