How to change argument/parameter colors?


#1

I want to change the color the conn, params inside the ( ) arguments. Is this possible?


#2

To clarify, I want to be able to target just the conn and params arguments, so I can change their color.


#3

What language are you using?


#4

I’m using Elixir


#5

Elixir doesn’t give a name to those inner arguments. It styles everything else, but not the arguments. And that means that you can’t really do much unless the grammar is changed to catch arguments inside a function. This is the HTML for that first line:

You can see that every part of it has its own <span> tag with class names, except for conn and params.

Fortunately for you, there’s an open issue on the package’s repo about this very thing.


#6

Awesome, thanks for the help.