- Notifications
You must be signed in to change notification settings - Fork618
feat(frontend): Improve highlighting of code samples#2538
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add highlighting for the prompt marker in the code samples.Refactor the html formatting so that the html tags are automaticallygenerated and don't have to be written manually in the code samplessources.
timhoffm commentedSep 12, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
From original PR:
Not sure whether it was not the case at the time of the original PR or whether I just didn't know, but sphinx depends on pygments, so it's available in your doc build environment and you could use that instead of this manual approach. |
@timhoffm I'm not sure that we install docs deps where this is used, but I can check tomorrow. pygments is okay with me if it cleans up some cruft |
I would lean towards using pygments. |
What
main
fromImprove highlighting of code samples #1517Add highlighting for the prompt marker in the code samples.
Refactor the html formatting so that the html tags are automatically generated and don't have to be written manually in the code samples sources.