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

josevalim
Hi everyone, We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
RobertDober
Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
239 11851 134
New
tmbb
I’ve been working on two packages (not on hex.pm yet) to build admin interfaces for phoenix apps: bureaucrat - which contains a bunch ...
New
seancribbs
Today I released a new dialyzer Mix task as the dialyzex package! At the time we started writing this task, the existing dialyzer integra...
New
kelvinst
Hey everyone! Well, we made this lib a while ago and now we decided to finally go out and public with it! It’s a tool for creating and m...
New
danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
wfgilman
I’ve cleaned up and open sourced three financial libraries I was using for my company. They are bindings for the APIs of these three comp...
New
Antrater
Hi everyone! I’m thrilled to announce a huge thing. We have been developing Elixir Moon Design System for quite a while. We are finally ...
New
wmnnd
Hi there, for my project DBLSQD, I needed a file storage solution that is a bit more flexible than Arc. Because I thought others might f...
New
bryanjos
Hi, I just published version 0.23.0 of Elixirscript. Most of the changes are around JavaScript interop now that Elixirscript uses the ...
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
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
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
beno
I will often find my self writing things similar to: case some_value do nil -&gt; something() "" -&gt; something() _ -&gt; someth...
New

Sub Categories:

We're in Beta

About us Mission Statement