html syntax highlight for vscode python notebooks

Viewed 18

as a data scientist and a former frontend developer, I sometimes use HTML with IPython to present data with some html components in VScode notebooks for better visualizations.

my_html_string = f"""
<div style="height: 100px;">
  <h1>Some HTML {b} </h1>
</div>
"""

but usualy I write html in multi line python string so I dont have syntax highlighting. which is very frustrating for complex UI. is there some plugin for VScode for multiline string html syntax highlighting ?

1 Answers

I suggest you to use escape string instead of using plugin, that's how I do it

Related