Syntax.js - Documentation - Binding Language

Below are all the options that can be used for the "data-syntax-language" binding attribute for a DOM element.

Download Now

v3.1.0 - 6th Sep 2024
Options
Language: Description:
unknown States if the language is unknown (causes the main display to render, but no highlighting is applied).
tabbed States that the display language is a tabbed display, showing child languages as tabs (children need to have the attribute "data-syntax-tab-contents").
language Any language that is supported (see the "dist/languages" for all available).