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