Sanjibukai
Suggestion of a color theme (syntax highlighting) for Elixir?
Hello Everybody,
Does anyone know a good color scheme for syntax highlighting adapted to Elixir.
In my case I’m using VSCode.
I tried some Color Themes dedicated to Elixir found on the extension market but even so I found them not suited for Elixir.
For example when using an inline def, none of them highlights correctly the do: like the def.
I know that it’s in fact a keyword (even in the implementation) but semantically I wanted the do: to be the same as the def.
Anyway, if anyone have a good suggestion I’ll be happy to try it..
Thank you..
Edit: I’ll also try to look at how syntax highlighting works (probably a lot of regex) and I’ll try to tinker with it myself..
Most Liked
lucaong
:do is definitely a valid atom, and indeed the do: in def something, do: ... is just a normal atom key in a keyword list. So having a special rule for :do atoms would probably not work well.
By the way, really nice theme, I would love to see a port to Vim to be able to use it in my everyday editor ![]()
LostKobrakai
They just atoms, that’s true, but they’re also special cased by being reserved words in elixir:
true,false,nil- used as atomswhen,and,or,not,in- used as operatorsfn- used for anonymous function definitionsdo,end,catch,rescue,after,else- used in do/end blocks
mindok
Pretty well all the recent knowledge of VS Code themes is collected into this thread:
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









