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 | 2843 | June 27, 2019 | |
Syntax highlighting for cells depending upon selected language | 3 | 2559 | July 22, 2022 | |
Examples of how to implement syntax highlighting | 4 | 491 | June 26, 2024 | |
Syntax Highlighting by custom mode doesn't work in notebook cells but works in text documents | 0 | 802 | March 16, 2023 | |
Getting syntax highlighting to work for custom cell magic | 8 | 2831 | June 19, 2024 |