Page 1 of 1

Code syntax highlighting in 8.1?

Posted: Wed Aug 09, 2023 6:59 pm
by zaaman41
I'm interested in using MI8 as a code repository. Syntax highlighting seems to be a new feature but I can't get it to work. There appears to be a "Code" style, but when I apply it, it just slightly reformats my already formatted code. I've tried HTML, Javascript, and Python. Can't find any documentation on it either. Any thoughts?

Re: Code syntax highlighting in 8.1?

Posted: Thu Aug 10, 2023 2:17 pm
by Petko
To get a proper syntax highlighting you need to insert the code via Insert > Code Snippet. You can choose the language for the code snippet so it will be rendered properly.

Re: Code syntax highlighting in 8.1?

Posted: Thu Aug 10, 2023 8:14 pm
by zaaman41
Thanks! That works.