# Is it possible to display html in vscode?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-display-html-in-vscode/87571>\
**Category:** General Usage\
**Tags:** question, vscode\
**Created:** [September 21, 2022, 12:57pm UTC](https://discourse.julialang.org/t/is-it-possible-to-display-html-in-vscode/87571 "2022-09-21T12:57:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 21, 2022, 12:57pm UTC](https://discourse.julialang.org/t/is-it-possible-to-display-html-in-vscode/87571/1 "2022-09-21T12:57:14Z")

</div>

I have the following code:

```julia
julia> show(stdout, "text/html", res)
<p>
    <h3>Charger log(s):</h3>
    <span style="font-family: monospace; color: #270">Message: "No buffer space" not found!</span><br>
    <span style="font-family: monospace; color: #270">Message: "CAN1 Error" not found!</span><br>
</p>

```

Is it possible to show this formatted in vscode?

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [September 21, 2022, 2:27pm UTC](https://discourse.julialang.org/t/is-it-possible-to-display-html-in-vscode/87571/2 "2022-09-21T14:27:41Z")

</div>

If you are attempting to display the HTML code in the integrated REPL, the graphical capabilities of VSCode’s REPL are not different from the “standard” REPL, as far as I know. So a couple of possible solutions are (both in or outside VSCode):

- Transform your HTML code into Markdown (perhaps there’s some package that already does it, I don’t know), and take advantage of the built-in capability of Julia’s REPL to print formatted markdown:

```julia
using Markdown
text = """
       # Title

       Text _with_ **some format**
       """
Markdown.parse(text)

```

The result is:

![image](https://global.discourse-cdn.com/julialang/original/3X/3/2/32126c2f7e968b4ce0b24519b0c5d720e682eaa1.png)

- Or alternatively, look for some package that uses [OhMyREPL.jl](https://github.com/KristofferC/OhMyREPL.jl) to give format to HTML code in the REPL (I don’t know if that exists).

With respect to VSCode tools, the integrated notebook is already capable of parsing and showing HTML code:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/f/1fb7bdea5adc56f8ccec23dd61c850c5ebee3a4e.png)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [September 22, 2022, 9:06am UTC](https://discourse.julialang.org/t/is-it-possible-to-display-html-in-vscode/87571/3 "2022-09-22T09:06:46Z")

</div>

We don’t automatically use `text/html`. You’ll need to explicitly opt into using the plotpane for HTML by defining a show method for `juliavscode/html`.
