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 | |
---|---|---|---|---|
Getting syntax highlighting to work for custom cell magic | 11 | 3199 | January 19, 2025 | |
Text Editor Syntax Highlighting in Jupyter Cell | 0 | 3097 | June 27, 2019 | |
Jupyterlab inline syntax highlighting | 4 | 2565 | January 27, 2022 | |
Syntax highlighting for cells depending upon selected language | 3 | 2884 | July 22, 2022 | |
I want to know if there is a better way to code highlight code in cells in jupyter labs | 2 | 1279 | November 9, 2021 |