Live data from Hacker News

Arborium: Tree-sitter code highlighting with Native and WASM targets

arborium.bearcove.eu

1–10 of 48 posts

Re: Arborium: Tree-sitter code highlighting with Native and WASM targets

#6
post #4

Sorry, but I can't understand what this actually is. A library, a stand-alone tool, a Rust crate? What users does it target? Text editors, website creators?

GitHub repo is a bit more helpful, but users or building of text editors that use tree-sitter.

Or... website text editors which historically have had imperfect syntax highlighting.

Notice the Zed sponsorship.

https://github.com/bearcove/arborium

Re: Arborium: Tree-sitter code highlighting with Native and WASM targets

#8
I'm currently building an online 3D-Editor that supports OpenSCAD and Python as the input language.

The ease of use to highlight static text via Arborium seems nice:

    
    
        def hello(name):
            print("Hello " + name);
    
But does it support editing highlighted text? If not, one would have to do some trickery by hiding a textarea and updating the element on each keypress, I guess. Which probably has a thousand corner cases one would have to deal with.

And how would one add SCAD support?

Post reply on HN