leandrocp

leandrocp

Autumn - Syntax highlighter powered by Tree-sitter and Neovim themes.

Autumn is a syntax highlighter powered by Tree-sitter and Neovim themes.

You can check out how it looks like at https://autumnus.dev/

Features

  • :rocket: Backed by a Rust library
  • :deciduous_tree: 60+ languages
  • :artist_palette: 100+ Neovim themes
  • :memo: Formatters: html inline, html linked, terminal
  • :magnifying_glass_tilted_left: Language auto-detection

Most Liked

hauleth

hauleth

It is impossible to do with just parser, it would need to be full evaluator, especially that it requires to know about the called module.

leandrocp

leandrocp

Hey some updates for Autumn that might be worth checking out:

  • Added support to include a header element wrapping the code block
  • Added support to highlight specific lines using a CSS class or style (depends on the formatter)
  • Added more languages and a Random button on the demo site https://autumnus.dev
  • Functions to “bring your own theme” - you can edit themes and load at runtime
  • Added more than 10 new themes and updated a few more
  • Added new languages

Full changelog at Changelog — Autumn v0.4.1

josevalim

josevalim

Creator of Elixir

Really smart to use tree sitter for this. :slight_smile:

leandrocp

leandrocp

v0.5.0 released with a focus on highlighting lines, for example to highlight some lines with custom style:

{:html_inline, highlight_lines: %{lines: [1, 3..5, 8], style: "background-color: #fff3cd; border-left: 3px solid #ffc107;"}}

Also updated languages and themes, and replace <span> with <div> for lines. Full changelog at Changelog — Autumn v0.5.0

leandrocp

leandrocp

Hey Valim thanks! Indeed tree-sitter works very well with a relatively small binary and possibly even smaller thanks to feature flags :slight_smile:

Tree-sitter is pretty much becoming a standard and even vscode is exploring using it. Leaving this issue for those interested Explore using tree sitter for syntax highlighting · Issue #210475 · microsoft/vscode · GitHub

Where Next?

Popular in Libraries Top

mhanberg
I just released the first version of Temple: an HTML DSL for Elixir and Phoenix! You can read this blog post or the docs for more info...
New
alisinabh
Hey everyone i’ve developed a library for Jalaali calendar for elixir which supports converting Gregorian dates to Jalaali and vice vers...
New
asiniy
Hey there! I wrote a download elixir package which does exactly what its name about - an easy way to download files. I saw solutions ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
kelvinst
There was a feature proposal recently on Elixir core mailing list where an idea born. I got very interested in the idea, but it is not go...
New
archan937
It is a well-know topic within the Elixir community: “To mock or not to mock? :)” Every alchemist probably has his / her own opinion con...
New
woutdp
Hi! I wanted to introduce my latest project LiveSvelte. It allows you to render Svelte inside LiveView with end-to-end reactivity. It’s ...
New
michalmuskala
Hello everybody. I have just released Jason - a new JSON library. You might be wondering, why do we need a new library? The primary foc...
New
martinthenth
Hello everybody :wave: Recently, some of my colleagues talked about database ids and uuids and their problems, and I remembered the pain...
New
Qqwy
Hello everyone, I wrote a small library today called MapDiff. It returns a map listing the (smallest amount of) changes to get from map...
New

Other popular topics Top

yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

Sub Categories:

We're in Beta

About us Mission Statement