[Geany-Users] Any way to make geany recognize modelines for syntax coloring?

Lex Trotman elextr at xxxxx
Wed Jan 13 05:29:20 UTC 2016


On 13 January 2016 at 14:59, Matthew Brush <mbrush at codebrainz.ca> wrote:
> On 2016-01-12 4:42 PM, Lex Trotman wrote:
>>
>> On 13 January 2016 at 10:26, Matthew Brush <mbrush at codebrainz.ca> wrote:
>>>
>>> On 2016-01-12 5:40 AM, Karma Kolabor wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I have not seen any way to make geany recognize modeline line e.g.
>>>> # vi: set ft=ruby
>>>>
>>>> is there a feature or any plugin for this?
>>>>
>>>
>>> What about just adding a Ruby file extension or shebang line to allow
>>> Geany
>>> to detect it? Sorry if it's not permissible.
>>
>>
>>
>> A vagrant file is not a ruby program file, its a configuration file
>> for vagrant that happens to be in ruby syntax.  The name of the config
>> file is "Vagrantfile" so its not possible to add .rb, and since its
>
>
> If it has a fixed name like Gemfile or Rakefile (or Makefile, configure,
> SConstruct, etc), can just add that directly to filetype_extensions.conf
> like those.

Thats a good idea, the OP should try that.

>
>> not a program it won't run so it should not have a shebang.
>>
>
> It could still contain a shebang, if the file isn't executable, or always on
> Windows, it's just a comment.
>
> Cheers,
> Matthew Brush
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list