-
Notifications
You must be signed in to change notification settings - Fork 33
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
🐞 Detect File Language Via shebang #46
Labels
bug
Something isn't working
Comments
CodeEdit currently cannot infer the file type without the file extension, just add the proper extension and syntax highlighting will work. Thanks for reporting this issue! |
It is something we should look into though. |
Moving this to |
thecoolwinter
changed the title
🐞 Syntax highlighting doesn’t work
🐞 Detect File Language Via shebang
Jun 16, 2023
github-project-automation
bot
moved this from 🏃♂️ In Progress
to 🏁 Complete
in CodeEdit Project
Jun 18, 2023
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I open a file in the editor, there is no syntax highlighting. Everything is black. Furthermore, the right-hand panel says the file is of type “Swift Source.” That is incorrect; the file is Python, as can be identified by the shebang statement on the first line. (I don’t know if CodeEdit looks for these, however.) The file has no extension.
When I change the editor type to Python manually, nothing happens. The text is still all black.
To Reproduce
Expected Behavior
Bright and informative colors.
Version Information
CodeEdit: 0.0.3-alpha (32)
macOS: 13.4 (22F66)
Xcode: 15.0 (15A5160n)
Additional Context
I do not know if CodeEdit is smart enough to look the shebang line of a file to detect which syntax highlighter should be used. (CotEdit and other editors can do this.) If not, it should be.
Furthermore, if the file type truly cannot be determined, the default should be plain text.
Screenshots
The text was updated successfully, but these errors were encountered: