Why is my code in Matlab Answers not colorful?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I started using Matlab Answers a few days ago and this is probably a dumb question, but it's starting to bother me.
If I write a code block, whether in a question, comment, or answer, the colors show up normally in the Editor:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1354353/image.png)
But when I actually make the post, all of the colors go away:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1354358/image.png)
I see other people posting their blocks of code with the usual colors. What am I doing wrong?
10 commentaires
Walter Roberson
le 13 Avr 2023
Even stranger: when I use my editor powers to edit your "one last try" post, the preview shows up color coded!
The code will not, if I recall, show up color coded in the case that the Answers editor thinks you are using Mobile. But in that case, you get a quite different editor, with a tab named Draft and a tab named Preview, rather than having the tool ribbon with "TEXT", "CODE", "INSERT", "RUN", "HELP" sections.
And if it thinks you are using mobile, then the editor you get then does not have explicit text blocks: you just have to know that to get a code block you need to leave a (completely) empty line and then have the first line after that indented by at least one space.
Réponse acceptée
Plus de réponses (2)
Cris LaPierre
le 13 Avr 2023
Not sure who you sent the email to, but please report this here: https://www.mathworks.com/support/contact_us.html
1 commentaire
Kayln
le 23 Fév 2024
I had the same issue. I ended up having to uninstall one of my debuggers and it seemed to come back.
0 commentaires
Voir également
Catégories
En savoir plus sur Historical Contests dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!