You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on the PySensei project, which is an interactive Python learning assistant. We are looking to improve the user experience by implementing the following features:
Syntax Highlighting: Code snippets should be highlighted for better readability.
Copy to Clipboard: Users should be able to easily copy code snippets to their clipboard.
Responsive Design: The application should be optimized for both desktop and mobile devices.
Despite our best efforts, we are facing challenges in implementing these features effectively. We would greatly appreciate any help from the community to achieve these improvements.
Current Implementation
Here is a brief overview of our current implementation:
We are using Prism.js for syntax highlighting.
We have a button for copying code snippets, but it doesn't seem to work as expected.
We have attempted to make the design responsive, but there are still issues on mobile devices.
Specific Issues
Syntax Highlighting:
Prism.js is included, but code snippets are not being highlighted as expected.
We need help ensuring that all code blocks are properly highlighted.
Copy to Clipboard:
The "Copy" button is present, but clicking it does not copy the code snippet to the clipboard.
We need a reliable method to copy code snippets to the clipboard on both desktop and mobile browsers.
Responsive Design:
The current design does not render well on mobile devices.
We need help optimizing the layout and styling to ensure a good user experience on all screen sizes.
ZigaoWang
changed the title
Need Help with Syntax Highlighting, Copy to Clipboard, and Responsive Design Features
Need Help with Syntax Highlighting and Responsive Design Features
Jul 15, 2024
We are excited to announce that the issue with the "Copy" button for code snippets has been resolved! 🎉
What's Fixed:
Copy to Clipboard: The "Copy" button now reliably copies code snippets to your clipboard with a single click. This functionality works seamlessly across different browsers and devices, ensuring a smooth experience for all users.
How It Works:
Highlighting Code: Simply click the "Copy" button located above any code snippet.
Clipboard Confirmation: Once clicked, the button will temporarily change to "Copied!" to confirm that the code has been successfully copied to your clipboard.
We appreciate your patience and feedback as we continue to improve PySensei. Your support helps us make the platform better every day.
As always, if you encounter any issues or have suggestions for further improvements, please don't hesitate to reach out.
Hello everyone,
I'm currently working on the PySensei project, which is an interactive Python learning assistant. We are looking to improve the user experience by implementing the following features:
Despite our best efforts, we are facing challenges in implementing these features effectively. We would greatly appreciate any help from the community to achieve these improvements.
Current Implementation
Here is a brief overview of our current implementation:
Specific Issues
Syntax Highlighting:
Copy to Clipboard:
Responsive Design:
Code Snippets
Here are some relevant parts of our code:
app.py
index.html
How You Can Help
Syntax Highlighting:
Copy to Clipboard:
copyToClipboard
function to reliably copy code snippets to the clipboard.Responsive Design:
Any help or suggestions would be greatly appreciated. Thank you in advance for your contributions!
Best regards,
Zigao Wang
Generated by ChatGPT, reviewed by Zigao Wang
The text was updated successfully, but these errors were encountered: