I tried altering both the system's shared filtype_extensions.conf and my user's and for some reason any *.jshint
file still does not get hightlighted as if it were a javascript file. I renamed my .jshint to a.jshint to see if it was just a private file thing and that wasn't the issue.
I would like to rely on this feature in the future and if someone wants to point me to the correct portion of code so I don't have to spend time digging - I will try and fix this myself. I have downloaded the source to geany and have taken a look in the past so I am slightly familiar.
specs:
geany 1.24.1
ubuntu 14.10
exact steps:
1) in filetype_extensions.conf -> change line 39 from
Javascript=*.js;
to
Javascript=*.js;*.jshintrc;
2) reload config (or restart geany)
3) open .jshint file and it doesn't get highlighted (comments is how I noticed, but if you write javascript functions or strings nothing gets highlighted)
Thanks,
Phil
Agh, annoying that I can't edit my ticket.
I wanted to correct myself:
"Javascript=.js"
is
"Javascript=*.js;"
Your problem is that conf filetype has a pattern *rc and it matches
before the Javascript is ever tested.
BTW you can use Geany github issues to avoid sf annoyance.
On 18 January 2015 at 07:34, Phil olsonpm@users.sf.net wrote:
Related
Bugs:
#1083Awesome - I really appreciate the quick response. And I'll use github issues in the future.
Diff:
BTW there also is an inconcistency in your report: you add
*.jshintrc
to filetypes_extension.conf but your file has extension.jshint
(notice the missingrc
on the end).I however imagine that's a discrepancy in the report and that your actually used extensions matched.
Correct - sorry for any confusion.
Last edit: Phil 2015-01-17