-
Notifications
You must be signed in to change notification settings - Fork 98
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
Allow forced highlighting for text from web interface #33
Comments
+1 we can always just go with the old hastebin method of appending an
|
The plan is to just use the file extension to guess better...you can
|
I uploaded a file with .md earlier and it didn't highlight as markdown syntax |
To clarify it does not yet use the extension to guess.
|
It can be changed
|
Ah, okay. Still, it would be nice to have a dropdown that defaults to "Detect" but allows forcing a certain syntax |
Gist uses the file extension to detect as well..seems needless to have
|
What's the third method of detection? I wouldn't consider "manually pick" as a method of detection, if that's what you mean. |
|
File extension trumps mine which trumps automatic
|
None of which can you change after upload... |
Both file and mine will be selectable so its stupid to also add a highlight
|
Why do we detect via mime type? Half of the time it's text/plain anyways |
In any case, I don't feel like having 3 automatic detection methods really replaces one manual method. I'm not advocating we only have manual, but it should be an option. |
The detection I have planned (not currently) is:
We should use mine type because it is the most standard and correct way to The user may always specify a mine type and file name.
|
I'm really just going for https://up1.ca/#SEED.cpp, similar to what we had on hastebin Users can't specify file name if they just upload a file via web or sharex. |
essentially what I am saying is that file extension and mine type manually
|
@andre-d But they don't, we have no manual override for uploaded files that way. |
If you want a viewtype it should likely just be mime type in the URL rather
|
I am not saying we do, but such a feature is planned and planning another
|
Talked on other channels:
|
There should be a dropdown somewhere (maybe beside the title?) that allows forcing the text to be syntax highlighed a certain way.
The text was updated successfully, but these errors were encountered: