You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to recognize files such as .irbrc or private_irbrc as a Ruby files when it comes to syntax highlighting, I have opened Tools/ConfigurationFiles/filetypes_configuration.conf and changed the line for the Ruby file extensions to
However, the file .irbrc is still not considered as Ruby-File, but as file of type "Conf". Looking up the definition of the "Conf" file type, I find the line
This doesn't make sense! The file name ".irbrc" obviously does not match any of the pattern in the "Conf" definition! Why is Geany picking up the wrong file type here?
The text was updated successfully, but these errors were encountered:
No such thing, I presume you mean Tools/ConfigurationFiles/filetype_extensions.conf
The Conf pattern *rc (which is for the various types of rc files used during system startup) will also match .irbrc, since that is "some characters that end in rc". The patterns are intended to be distinct, if they overlap the first to match will win, which I think is the nearest to the top in the list (or it might be lowest alphabetical filetype name, havn't checked).
Just to add, if you don't want the Conf match just delete that pattern, you will have to set filetype manually if you ever edit those files, but your Ruby will work.
Using Geany 1.30.1 on Windows 7:
In order to recognize files such as .irbrc or private_irbrc as a Ruby files when it comes to syntax highlighting, I have opened Tools/ConfigurationFiles/filetypes_configuration.conf and changed the line for the Ruby file extensions to
However, the file .irbrc is still not considered as Ruby-File, but as file of type "Conf". Looking up the definition of the "Conf" file type, I find the line
This doesn't make sense! The file name ".irbrc" obviously does not match any of the pattern in the "Conf" definition! Why is Geany picking up the wrong file type here?
The text was updated successfully, but these errors were encountered: