lite-plugins icon indicating copy to clipboard operation
lite-plugins copied to clipboard

Ruby

Open mikolaj24 opened this issue 3 years ago • 1 comments

Please add ruby formater/color

mikolaj24 avatar Dec 09 '20 11:12 mikolaj24

Hi. It's super easy to create one for yourself.

  • You need a list of all the keywords from ruby. A quick search should get you that, or peek at another editor that supports ruby already
  • copy one of the existing language_xxx.lua files to language_ruby.lua
  • change the keywords for ruby.
  • then change which file ending identifies the language
  • check what is defined as comment

This is not perfect but works ok as things like identifying strings and numerics are often quite similar between languages. Once you have the keywords highlighted and comments correct you can fine tune while you use it.

Takes 15-20 min. for the first shot

MarcusE1W avatar Dec 11 '20 21:12 MarcusE1W