Hacker Newsnew | past | comments | ask | show | jobs | submit | dlgltlzed's commentslogin

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


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.


That’s SMIL. You can also use CSS animations on SVG these days.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: