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

Better code blocks support in chatbot component #3831

Closed
1 task done
dawoodkhan82 opened this issue Apr 12, 2023 · 1 comment · Fixed by #4048
Closed
1 task done

Better code blocks support in chatbot component #3831

dawoodkhan82 opened this issue Apr 12, 2023 · 1 comment · Fixed by #4048
Assignees
Labels
svelte Frontend-related issue (JS)
Milestone

Comments

@dawoodkhan82
Copy link
Collaborator

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

  • Use gr.Code() component within chatbot component:
  • include syntax highlighting
  • add frame around code block
  • add copy button

Additional context
Add any other context or screenshots about the feature request here.

@dawoodkhan82
Copy link
Collaborator Author

I think if we can find a way to dynamically load the code component that would be best. Rather than re-implementing a worse version of the code component specifically for the chatbot. Plus there seems to be a lot of chatbot demos outputting code blocks.

@dawoodkhan82 dawoodkhan82 added the svelte Frontend-related issue (JS) label Apr 26, 2023
@dawoodkhan82 dawoodkhan82 added this to the 3.x milestone Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
svelte Frontend-related issue (JS)
Projects
None yet
1 participant