Better HN
topnewbestaskshowjobs
Log inSign up

dlgltlzed

3 karma · joined May 4, 2022 (4y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

Syntax highlighting caught my interest after I created a data format. I stumbled upon TextMate grammar bundles which are supported in some editors and created a bundle that works with three of them. The gnome text editor uses a different language definition format for which I created a grammar file as well. [1]

To highlight the syntax in the browser I checked out the CodeMirror project that uses Lezer grammars. It is very flexible and allowed me to implement additional features like custom folding. [2]

I would also like to create a grammar for tree-sitter, finish the Java implementation and documentation of the ESON parser before I try to implement it in other languages.

[1] https://gitlab.com/marc-bruenisholz/eson-textmate-bundle [2] https://gitlab.com/marc-bruenisholz/eson-lezer-grammar

comment 3y ago · link · parent

Talking about animations, the little animation next to "Connected to WebSocket" is an SVG. I did not know until today that SVGs may be animated. Nice to know.