[Geany-Users] Any way to make geany recognize modelines for syntax coloring?
Matthew Brush
mbrush at xxxxx
Wed Jan 13 04:59:37 UTC 2016
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.
> 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
More information about the Users
mailing list