What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

While I edit Erlang code there is nice syntax coloring shown in the preview.

Once I post, the rendered code is often only black on grey.

Example: Erlang pattern matching bitstrings

Counterexample: Simplest way to inform a local erlang node from a shell command is colored nicely.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The preview just guesses what language you're using based on keywords. After it's posted, the highlighting is tag-based.

The tag has no highlighting enabled because Prettify doesn't have an Erlang mode. Your counterexample actually has shell-script highlighting because of the tag.

You can manually specify the language if you think the results look good enough.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .