CMS Development

tylerjoseph
Participant | Elite Partner
Participant | Elite Partner

HubL Comments Interfering with Syntax Highlighting

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

5 Replies 5
Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

HubL Comments Interfering with Syntax Highlighting

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:

{# 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: 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. 

 

 

 

Anton Bujanowski Signature
tylerjoseph
Participant | Elite Partner
Participant | Elite Partner

HubL Comments Interfering with Syntax Highlighting

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.

0 Upvotes
Stephanie-OG
Key Advisor

HubL Comments Interfering with Syntax Highlighting

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

Website | Contact

ChehakWadhdwa
Member | Diamond Partner
Member | Diamond Partner

HubL Comments Interfering with Syntax Highlighting

Hey @tylerjoseph

 

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.

0 Upvotes
tylerjoseph
Participant | Elite Partner
Participant | Elite Partner

HubL Comments Interfering with Syntax Highlighting

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

0 Upvotes