Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support syntax highlighting for custom extensions #34

Closed
attiks opened this issue Jun 4, 2012 · 1 comment
Closed

Support syntax highlighting for custom extensions #34

attiks opened this issue Jun 4, 2012 · 1 comment
Labels

Comments

@attiks
Copy link
Contributor

attiks commented Jun 4, 2012

Syntax highlighting is only working for known extensions, I had a look at lib/Application/Utils.php - getFileType but it defaults to 'text' for all unknown extensions, is it possible to add an array to config.ini so we can define/override custom extension mapping.

Use case: Drupal uses .module, .inc, .install for PHP as well

I solved it for now by changing views/file.twig to treat 'text' as PHP

@attiks
Copy link
Contributor Author

attiks commented Jun 4, 2012

See fix in #36

@attiks attiks closed this as completed Jun 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant