[Geany] Ruby/Rails - strange syntax highlighting problem, help !

Lex Trotman elextr at xxxxx
Sat Jan 21 02:31:44 UTC 2012


On Sat, Jan 21, 2012 at 1:15 PM, Nathan Broadbent <nathan.f77 at gmail.com> wrote:
>> > Have you tried setting the filetype to HTML?  I'm not sure it highlights
>> > embedded Ruby code, but it should highlight the HTML correctly.
>>
>> Ruby does not support embedding HTML nor HTML support embedded ruby AFAICT.

Erm, sorry I meant the ruby lexer and the HTML lexer respectively, not
the languages themselves.

>
>
> Ruby on Rails views are HTML with embedded Ruby (ERb), with an
> extension of ".html.erb".
> The HTML lexer currently supports highlighting for JS, PHP, Python,
> ASP, but not Ruby. So this support will need to be added if you want
> ERb highlighting within HTML.
>

Correct.

Cheers
Lex

>
> Cheers
> Nathan
>
> P.S. I was previously thinking about writing a Haml lexer, but I've
> given up on that idea. Fixing the Ruby lexer so that it works with
> Haml was good enough.
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany



More information about the Users mailing list