I’ll write everything below, but I wanted to say thanks for this forum. It’s refreshing to see it well tended!
Feature — Add format type “Code Fence”
In addition to “Preformatted” as a format, I would like to see “Code Fence” as an additional area made available within notes. I’m aware everything gets converted to JSON, but if this is implemented, you have several advantages.
Fences should be able to be stored as a single string.
It’s something that can be implemented in the same way you see it in GFM; by invoking ``` [opt_lang]
As a feature, a Code Fence is not just about code. As a unique, plain-text environment, users can call for emphasis, ensure that specific coding is preserved, and formatting is explicit.
My hope is that it will not only be convenient, but a major selling point. Having a project of notes that allows code snips to be pasted would make sense as it doesn’t force formatting on text that shouldn’t have it. You’ll surely know how handy they are. While Agenda is not intended to be a Markdown editor, it would pay to offer the format as that can later be augmented to improve the product.
Finally, Preformatting doesn’t survive the Enter key. A fence creates a section that would continue to provide a code reference over multiple lines.
Thank you for your consideration.