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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

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! Early Bird pricing ends December 9th.