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

Filetype auto detection not working? #2997

Closed
xiota opened this issue Nov 12, 2021 · 2 comments
Closed

Filetype auto detection not working? #2997

xiota opened this issue Nov 12, 2021 · 2 comments

Comments

@xiota
Copy link
Contributor

xiota commented Nov 12, 2021

According to a comment at #1899:

Note that Geany does in fact detect the prefixes you suggested:

<!DOCTYPE html
<html
<?xml
<?php

and a whole bunch of #! names.

However, when I tested each of the prefixes mentioned above in a file named test, the assigned filetype is "None".

Since filetype autodetection occurs only when documents are opened, I closed and reopened the document after changing the first line prefix.

@xiota
Copy link
Contributor Author

xiota commented Nov 12, 2021

Strange... now working... I think I was using the wrong keybinding and the document wasn't really being closed when I thought it was.

Maybe #1899 can be closed since it's already implemented?

@xiota xiota closed this as completed Nov 12, 2021
@elextr
Copy link
Member

elextr commented Nov 12, 2021

Closed

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