Re:Storing knowledge in a single long plain text file
by desio on Wednesday May 22, 2024 @03:39AM
(#40438316)
Looks like that's on codemirror framework? Any good resources you could share on wiring up custom language and view? I've managed to kinda get something working with lezer but the docs aren't great and I want to setup some pretty specific behaviour in the view with folding and validation etc.
[ Parent
| on HN ]
Re:Storing knowledge in a single long plain text file
by kjksf on Wednesday May 22, 2024 @06:48AM
(#40439461)
Yes, Codemirror.
What I know about Codemirror I mostly learned by reading other people's code so I suggest that.
Specifically code of silverbullet: https://github.com/silverbulletmd/silverbullet/tree/main/web... (and a few other directories there).
It implements very advanced Markdown mode, lots of code to learn from.