Syntax.js - Documentation - Configuration Options
Below is the JSON format and properties that can be used for the configuration options.
Download Now
v2.5.0 - 29th Mar 2024
Below is the JSON format and properties that can be used for the configuration options.
Download Now
Type: | Name: | Description: |
---|---|---|
boolean | safeMode | States if safe-mode is enabled (errors will be ignored and logged only, defaults to true). |
Object | highlightAllDomElementTypes | The DOM element types to lookup (can be either an array of strings, or a space separated string, and defaults to "div" and "code"). |
boolean | allowHtmlInTextDisplay | States if HTML can be used for text displays, i.e. Tabs, Descriptions, etc (defaults to true). |
Type: | Name: | Description: |
---|---|---|
string | buttonsOpenerText | States the text that should be used for the open buttons button (defaults to "<"). |
string | buttonsCloserText | States the text that should be used for the close buttons button (defaults to ">"). |
string | objectErrorText | States the error message that should be shown for object parsing errors (defaults to "Errors in object: {{error_1}}, {{error_2}}"). |
string | attributeNotSetErrorText | States the error message that should be shown for attribute not errors (defaults to "The attribute '{{attribute_name}}' has not been set correctly."). |
string | languageNotSupportedErrorText | states the error text that should be shown when a language detected is not supported (defaults to "Language '{{language}}' is not supported."). |
string | noCodeAvailableToRenderErrorText | States the error text that should be shown when there is no code to render (defaults to "No code is available to render."). |