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

Some file extensions do not trigger syntax highlighting #7

Open
dustinkredmond opened this issue Apr 12, 2022 · 3 comments
Open

Some file extensions do not trigger syntax highlighting #7

dustinkredmond opened this issue Apr 12, 2022 · 3 comments

Comments

@dustinkredmond
Copy link
Contributor

For example, create a test Gist with extension of .py. This is the file extension convention for Python. The syntax highlighting is not triggered. Also consider adding (nice to have, but not necessary) the option to manually select the syntax highlighting language for the current context. This would allow the user to override the default.

We should also look at alternative extension support, e.g. html as well as htm for HTML files.; py as well as pyw for Python.

@EasyG0ing1
Copy link
Contributor

EasyG0ing1 commented Apr 12, 2022 via email

@dustinkredmond
Copy link
Contributor Author

That is weird... I could see if it were COBOL, or something more obscure. We can probably submit a PR.

@EasyG0ing1
Copy link
Contributor

@dustinkredmond - I discovered that MonacoFX doesn't recognize the .py extension, but it does recognize the word python, so I add translations in the code for .py.

If you look in the help menu, you'll see Languages. That is a list of all the languages that MonacoFX recognizes.

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

2 participants