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 | 2231 | June 27, 2019 | |
Syntax highlighting for cells depending upon selected language | 3 | 2015 | July 22, 2022 | |
Syntax Highlighting by custom mode doesn't work in notebook cells but works in text documents | 0 | 564 | March 16, 2023 | |
Getting syntax highlighting to work for custom cell magic | 7 | 2280 | November 22, 2021 | |
Changing the background color of Markdown cells | 0 | 1296 | June 9, 2023 |