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

Automatic selection of language based on query parameters #10

Open
Andre601 opened this issue Jan 19, 2022 · 0 comments
Open

Automatic selection of language based on query parameters #10

Andre601 opened this issue Jan 19, 2022 · 0 comments

Comments

@Andre601
Copy link

Andre601 commented Jan 19, 2022

This can be seen as an addition to #9

My suggestion is, to allow the language to be (pre-)selected based on a query parameter defined in the URL.
This would allow people to share a link, where the code highlighting is already set, only requiring a paste of the info and subsequently save.

For example:
Providing https://pastes.dev/?lang=yaml would automatically select YAML as the language for the paste.

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

1 participant