5
$\begingroup$

I like to discuss a Python script in a Mathematica text cell (not execute it). How should I go about that since a copied and pasted text looks very ugly, especially without proper indentation and color coding?

$\endgroup$
2
$\begingroup$

Converting comment to an answer:

There is nothing out of the box to support other languages.

Style/format text manually or write a parser like here: Customizing syntax highlighting for private cell styles.

p.s. Format / Style / "Program" looks better for code.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.