# XML syntax highlighting when printing to terminal?

**URL:** <https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414>\
**Category:** Performance\
**Created:** [August 27, 2022, 4:42am UTC](https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414 "2022-08-27T04:42:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [August 27, 2022, 4:42am UTC](https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414/1 "2022-08-27T04:42:01Z")

</div>

I was curious about whether or not there is a way to automatically color format XML statements such as (all grey in terminal):

```julia
<simulationdomain>
  <posmin x="default" y="default" z="default"/>
  <posmax x="default" y="default" z="default"/>
</simulationdomain>

```

And turn them into (from Notepad++):

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

I.e. automatic colour formatting for XML snippets inside of Julia terminal. Is there an easy way of doing this or do I have to make a custom print function with some keywords logic?

It does not have to be this exact color scheme, it just has to have colors.

Kind regards

---

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [August 30, 2022, 8:36pm UTC](https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414/2 "2022-08-30T20:36:05Z")

</div>

Bumping because I am interested in a solution - mostly nice to have and not need to have, so I will probably not bump any more 🙂

Kind regards
