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

Unrecognised file types #18

Closed
PeterWone opened this issue Apr 4, 2019 · 1 comment
Closed

Unrecognised file types #18

PeterWone opened this issue Apr 4, 2019 · 1 comment

Comments

@PeterWone
Copy link
Collaborator

PeterWone commented Apr 4, 2019

VS Code's own settings files are reported as jsconc which is not a name known by highlightjs.

This is a consequence of #17 and is resulting in an error and no print content.

I will use an error handler to fall back to letting highlightjs detect, which guarantees printing if not highlighting.

@PeterWone
Copy link
Collaborator Author

Fallback seems to work. It even correctly autodetects in the case of jsonc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant