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 | 3536 | January 19, 2025 | |
| Text Editor Syntax Highlighting in Jupyter Cell | 0 | 3132 | June 27, 2019 | |
| Jupyterlab inline syntax highlighting | 4 | 2703 | January 27, 2022 | |
| Syntax highlighting for cells depending upon selected language | 3 | 3055 | July 22, 2022 | |
| Syntax highlighting Scilab language | 0 | 41 | September 17, 2025 |