Documentation
Pre
preClass
Type: String
Boolean
Default: false
This setting allows to set a predefined class for the pre
tag. Example below, will make all code inside of pre tag to be highlighted, and have line numbers.
$R('#content', {
preClass: 'prettyprint linenums'
});
preSpaces
Type: Number
Boolean
Default: 4
This setting allows to set the number of spaces that will be applied when a user presses Tab key inside of preformatted blocks.
If set to 'false', Tab key will apply tabulation instead of spaces inside of preformatted blocks.
$R('#content', {
preSpaces: false
});
dkjgvo65776inru43654