paste icon indicating copy to clipboard operation
paste copied to clipboard

Automatic selection of language based on query parameters

Open Andre601 opened this issue 3 years ago • 0 comments

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.

Andre601 avatar Jan 19 '22 09:01 Andre601