# HubL Comments Interfering with Syntax Highlighting

**URL:** <https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551>\
**Category:** CMS Development\
**Created:** [October 5, 2022, 7:37pm UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551 "2022-10-05T19:37:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylerjoseph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tylerjoseph/32/82226_2.png) [@tylerjoseph](https://community.hubspot.com/u/tylerjoseph)\
**Post date:** [October 5, 2022, 7:37pm UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/1 "2022-10-05T19:37:35Z")

</div>

I’ve been experincing a possible bug today as I’m editing modules in Design Tools. Any code placed beneath HubL comments is rendering white and slanted. Makes everything hard to read.

Is there a fix for this?

 ![hubl-comments-white.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/2fad5e791249fc70f4cadef3e59db91b77f78ca8.png)

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 6, 2022, 7:30am UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/2 "2022-10-06T07:30:42Z")

</div>

Hey [@](https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041)[tylerjoseph](https://community.hubspot.com/t5/user/viewprofilepage/user-id/75067)

This might be the changes from the hubspot and one thing more please replace setx with set on line no 10 as it shows error in your code snippet.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![tylerjoseph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tylerjoseph/32/82226_2.png) [@tylerjoseph](https://community.hubspot.com/u/tylerjoseph)\
**Post date:** [October 6, 2022, 2:06pm UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/3 "2022-10-06T14:06:04Z")

</div>

It’s not my code, it’s the example code HubSpot provides when you open up settings.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [October 6, 2022, 10:05am UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/4 "2022-10-06T10:05:51Z")

</div>

Hi @tylerjoseph,

can confirm something similar.

For me it’s:

If I place just one comment bracket the HTML below is displayed without syntax highlighting.

But if I place two comment brackets it works like it should work.

Example:

```lia-code-sample
{# start comment #}
...
{# end comment #}

regular HTML/Hubl content

```

I know it’s not ideal and shouldn’t be so but does this work for you?

best,

Anton

[@ChehakWadhdwa](https://community.hubspot.com/t5/user/viewprofilepage/user-id/345416): Changing setx to set has absolutly nothing to do with the question asked. Sure it’s a possible issue, but again - completly off-topic at this point.

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 6, 2022, 1:18pm UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/5 "2022-10-06T13:18:02Z")

</div>

This started happening to me yesterday too and at first, I spent a good while trying to figure out what was wrong with my perfectly acceptable two lines of code 😅

It makes it pretty hard to read! Thanks for the workaround @Anton , it will work until they hopefully fix it.

* * *

**Stephanie O’Gay Garcia**

[Freelance HubSpot CMS Developer](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

---

<div class="post-metadata">

**Author:** ![tylerjoseph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tylerjoseph/32/82226_2.png) [@tylerjoseph](https://community.hubspot.com/u/tylerjoseph)\
**Post date:** [October 6, 2022, 2:12pm UTC](https://community.hubspot.com/t/hubl-comments-interfering-with-syntax-highlighting/66551/6 "2022-10-06T14:12:43Z")

</div>

Thanks for this @Anton! I can confirm it works.  
Hopefully they do fix it because it’s pretty annoying, especially when working in themes from the marketplace.
