On Sat, Jan 21, 2012 at 1:15 PM, Nathan Broadbent <[email protected]> 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
> [email protected]
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
_______________________________________________
Geany mailing list
[email protected]
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to