Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mikeburek
Advocate II
Advocate II

Spark SQL code blocks display as plaintext without syntax highlighting

A coworker and some other people online are having problems with syntax highlighting no longer working for Spark SQL. Is this a recent bug, or is there something I should tell them to try?

1 ACCEPTED SOLUTION
v-huijiey-msft
Community Support
Community Support

Hi @mikeburek ,

 

Thanks for the reply from BenjaminBoothBW .

 

I used to be able to reproduce your error, but now I can't reproduce your error and I'm not sure if the problem has been fixed?

 

I would appreciate it if you could provide me with the steps on how you got the error.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

5 REPLIES 5
v-huijiey-msft
Community Support
Community Support

Hi @mikeburek ,

 

Is my follow-up just to ask if the problem has been solved?

 

If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?

 

Thank you very much for your cooperation!

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

v-huijiey-msft
Community Support
Community Support

Hi @mikeburek ,

 

Thanks for the reply from BenjaminBoothBW .

 

I used to be able to reproduce your error, but now I can't reproduce your error and I'm not sure if the problem has been fixed?

 

I would appreciate it if you could provide me with the steps on how you got the error.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

BenjaminBoothBW
Frequent Visitor

I also experience the same problem. For me, it doesn't work to copy out and re-paste the code 

v-huijiey-msft
Community Support
Community Support

Hi @mikeburek ,

 

I can reproduce your situation.

 

Convert the code block to Markdown format and back, and the syntax highlighting disappears.

vhuijieymsft_0-1726121699807.png

vhuijieymsft_1-1726121699810.png

 

In my opinion, this doesn't affect the code, it runs fine, it's just that it might be a bad experience without syntax highlighting.

vhuijieymsft_2-1726121717630.png

 

Copying out the statements from the code block and re-pasting them in restored my syntax highlighting.

vhuijieymsft_3-1726121717631.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

I appreciate the effort your put into this reply.

 

Yes, the code continues to work without the syntax highlighting.

 

The problem has not been solved, though.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.