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

Add Gist link to formatted code embed #1093

Open
thegatesdev opened this issue Apr 16, 2024 · 0 comments
Open

Add Gist link to formatted code embed #1093

thegatesdev opened this issue Apr 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@thegatesdev
Copy link

thegatesdev commented Apr 16, 2024

The "Format" code action generates a nice embed with the formatted code, but it does not display nicely on every screen. This is because the width is limited to some number, so wider screens don't actually get to display the contents any better. This is annoying when for example long lines of code get wrapped while there is still space.

Solution

Show a GitHub Gist link somewhere in the embed, that also displays the formatted code.
The Gist functionality is already implemented with user file uploads.

Alternatives

  • Replace the embed with a Gist link.
  • A bookmarklet that the user can add, which would execute JavaScript to modify the embed CSS to allow a bigger width. Modifying the Discord UI would be against their TOS.
  • Link to some other place, e.g. a webpage with the formatted code, and options to further interact with the bot.
@thegatesdev thegatesdev added the enhancement New feature or request label Apr 16, 2024
@thegatesdev thegatesdev changed the title Add Gist link to formatting code-action Add Gist link to formatted code embed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant