For saving persistent shaders, Editor's sibling component (https://observablehq.com/@cmudig/highlighter) has a `glsl` function you can import, which uses a viewof to return the shader value and display the code with highlighting :)
Neat. I've been using https://observablehq.com/@stwind/glsl-chunk-tag which has the additional benefit of allowing you to collapse/expand it with the function signature as a preview. But the editor is by far my favorite!