Language Support in Code Fences


The latest version of Typora supports syntax highlight of following languages (in lower case):

Please note that the language you specify in ```{lang} is case insensitive for Typora when choosing the corresponding syntax highlight.

My language is not listed aboveā€¦

Typora uses CodeMirror for code fences with syntax highlight, so, if the language you want is not supported in Typora, you could:

  1. Check whether the language is supported on or not, if so, send us an email, and we will add related support.
  2. If the language is not supported on, please check for adding syntax highlight on CodeMirror. After it is supported by CodeMirror, Typora will follow.