rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
845 stars 115 forks source link

Can we easily redefine the colours? #261

Closed rubyFeedback closed 8 months ago

rubyFeedback commented 1 year ago

Take the following image:

https://i.imgur.com/CP1ae2v.png

The colours are ok-ish but I don't like the underline part as it makes it harder to read it. I may also like to re-define the colours for coderay, by passing a Hash or something. And ideally use RGB values to get "steelblue" or something like that.

So like:

Coderay.new('foobar.rb') {{
  comment: [255,33,11],
  content:    [55,143,51],
}}

Or some other API.

I can autogenerate the colours or re-use them so all I need would be some API to set this, ideally using it via a {} form already (that is more convenient than calling methods on a coderay-object per se, so I want to pass some option hash or something, ideally via a block.

zenspider commented 12 months ago

Isn't that API called CSS?