Syntax.js - Documentation - Binding Options
Below is the JSON format and properties that can be used for the binding options.
Download Now
v3.1.0 - 6th Sep 2024
Below is the JSON format and properties that can be used for the binding options.
Download Now
| Type: | Name: | Description: |
|---|---|---|
| boolean | removeBlankLines | States if all blank lines should be removed (defaults to false). |
| boolean | showLineNumbers | States if the line numbers are shown (defaults to true). |
| boolean | showLanguageLabel | States if the language label should be shown or not (defaults to true). |
| boolean | padLineNumbers | States if the line numbers should be shown as "01" instead of "1" (defaults to false). |
| boolean | removeDuplicateBlankLines | States if duplicate blank lines should be removed (defaults to true). |
| boolean | doubleClickToSelectAll | States if double-clicking in the containers selects all of the code (defaults to true). |
| string | languageLabelCasing | States what casing should be used for the language label (optional, defaults to "lowercase", accepts "initial" and "lowercase"). |
| Category: | Type: | Name: | Description: |
|---|---|---|---|
| buttons | boolean | showCopy | States if the copy button should be added (defaults to true). |
| buttons | boolean | showPrint | States if the print button should be added (defaults to true). |
| buttons | boolean | visible | States if the buttons are open (visible). Defaults to true. |
| buttons | number | maximum | States the maximum buttons that can be shown before the opening/closing button is shown (defaults to 2). |
| Category: | Type: | Name: | Description: |
|---|---|---|---|
| highlight | boolean | keywords | States if the keywords should be highlighted (defaults to true). |
| highlight | boolean | values | States if the values should be highlighted (defaults to true). |
| highlight | boolean | attributes | States if the attributes should be highlighted (defaults to true). |
| highlight | boolean | strings | States if the strings should be highlighted (defaults to true). |
| highlight | boolean | comments | States if the comments should be highlighted (defaults to true). |