-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
The way MonacoFX works in terms of code recognition is by the filename
extension ... so it is possible, for example, to set its current code
"awareness" to any language you want, just by assigning the file extension
to that property. If it's not picking up python file extensions, then it
doesn't know about python ... which sounds crazy to me since Python is
insanely popular ... I'll look into it.
…On Mon, Apr 11, 2022 at 6:01 PM Dustin Redmond ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#7>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNDPUW6NW4JO55SMJYQXMDVETDNXANCNFSM5TE36EFQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
That is weird... I could see if it were COBOL, or something more obscure. We can probably submit a PR. |
@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
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 ashtm
for HTML files.;py
as well aspyw
for Python.The text was updated successfully, but these errors were encountered: