Hacker News new | ask | show | jobs
by news_to_me 905 days ago
Thanks! It's hard to escape making a syntax that's just a blend of other language's syntax elements, but I don't think that's a bad thing. Cassette's syntax is in some ways my favorite elements from other languages, and is most influenced by Elixir.

> How did you manage to use syntax highlighting for your own language on your website?

I used Pandoc to format a markdown file to HTML, which supports custom syntax definitions for code sections. (The relevent flags are `--standalone --template=template.html --syntax-definition=syntax.xml`.) The syntax definition is written in an XML format used by the Kate text editor (from KDE): https://docs.kde.org/stable5/en/kate/katepart/highlight.html

> One thing: I was confused (as others stated here I think) by the link to Robins Loan's website and thought it was an other article from you about Cassette.

Thanks, I'll clarify this or remove it soon.

> Would you consider writing a blog post about how you created it (building the lexer, parser, etc.)? I would definitely be interested.

For sure! I've been meaning to write up some of the technical aspects of the project, so those will appear on the site at some point in the future.