I’m writing a JupyterLab extension and want to know if there is a programmatic way to, say, pass a string (containing some source code) and have it return the HTML syntax highlighted version. I would want the colors to be the same as what Markdown or input cells currently render.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Text Editor Syntax Highlighting in Jupyter Cell | 0 | 3077 | June 27, 2019 | |
Syntax highlighting for cells depending upon selected language | 3 | 2814 | July 22, 2022 | |
Examples of how to implement syntax highlighting | 4 | 1144 | June 26, 2024 | |
Syntax Highlighting by custom mode doesn't work in notebook cells but works in text documents | 0 | 868 | March 16, 2023 | |
Changing the background color of Markdown cells | 1 | 2451 | December 5, 2024 |