FreeMarker with .ftlh and .ftlx extensions not identified as anything? #6247
-
FreeMarker templates can use output formats via file extensions, meaning a file that is https://freemarker.apache.org/docs/pgui_config_outputformatsautoesc.html
As above, this is the recommended usage with default configuration in FreeMarker 2.3.24+ (2018+). I'm not sure what the desired behaviour would be from linguist's perspective, but do note that Example Currently
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is expected as Linguist only has the It's been this way since it was implemented waaaaaay back when FreeMarker support was added in 2015 in #2689, which pre-dates the recommendation you mentioned by about three years 😁. In order for these to be identified as FreeMarker, or similar, support will need to be added, assuming they are sufficiently popular for inclusion (see the CONTRIBUTING.md file to usage requirements).
Not quite. Something similar would be needed for All support for languages is added by the community so if you've go the bandwidth, please feel free to submit a PR. If not, you can open an issue to add support and someone else in the community might spot the issue and be motivated to add support. Until then, you can probably get good enough syntax highlighting by forcing the language to XML or HTML using an override. This might not be necessary for the |
Beta Was this translation helpful? Give feedback.
This is expected as Linguist only has the
.ftl
extension associated with FreeMarker (and knows nothing about the other two extensions):https://github.com/github/linguist/blob/c1c34e5260797b4d598f5ec76f19723bfc5a1894/lib/linguist/languages.yml#L2009-L2018
It's been this way since it was implemented waaaaaay back when FreeMarker support was added in 2015 in #2689, which pre-dates the recommendation you mentioned by about three years 😁.
In order for these to be identified as FreeMarker, or similar, support will need to be added, assuming they are sufficiently popular for inclusion (see the CONTRIBUTING.md file to usage requirements).