ember-code-snippet icon indicating copy to clipboard operation
ember-code-snippet copied to clipboard

Snippet files aren't found when not one of the default extensions

Open shimizust-zz opened this issue 6 years ago • 0 comments

I'm trying to use this library for displaying java and bash code snippets. I followed the documentation to download a custom version of highlight.js to support these file types. However, this library will still only display code snippets from the default file types (js|ts|coffee|html|hbs|md|css|sass|scss|less|emblem|yaml).

It seems the problem lies in snippet-finder.js findFiles() method, which has a list of supported default extensions. Adding 'java' and 'sh' to the list of extensions allows the library to display java and bash code.

Is there a way to configure the file types from ember-cli-build.js? Or is there an alternate workaround? Thank you

shimizust-zz avatar Jan 09 '19 20:01 shimizust-zz