Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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
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 .