Back when I used macOS, I liked an app called SnippetsLab. Nowadays, I just throw them in Emacs Org files. Emacs is actually very handy for this, you get syntax highlighting in the code block, you can execute the code right from inside your Emacs environment and there’s even alpha support for lsp-mode inside of Org code blocks.
2023, the year of Big Tech companies restricting their users in every single possible way. But why is 2023 not the year of users finally waking up and switching away from this proprietary garbage?