3 ms·
I kind of agree with the post. For me, this technique almost starts overlapping with literate programming[0]. One trick I use[1] is adding certain characters b
by polyrand 3y ago
I kind of agree with the post. For me, this technique almost starts overlapping with literate programming[0].
One trick I use[1] is adding certain characters before the section name. e.g:
¡¡ settings
This makes searching and jumping between sections a lot easier.
[0]: https://en.wikipedia.org/wiki/Literate_programming https://en.wikipedia.org/wiki/Literate_programming
[1]: https://ricardoanderegg.com/posts/write-apps-in-single-file/ https://ricardoanderegg.com/posts/write-apps-in-single-file/
- tikhonj 3y agoThe Emacs version of this is using ^L (the ASCII form feed character), which lets you jump around using Emacs's built in page navigation commands. I've used this occasionally in Emacs Lisp code and it's pretty nice, but I've never done it in other languages because I suspect that non-Emacs-users won't be able to handle it :P The Emacs Wiki has a whole page on this: https://www.emacswiki.org/emacs/PageBreaks https://www.emacswiki.org/emacs/PageBreaks