Theme feature handling
- Source:
- theme.js
Methods
-
currentStyle()
-
Get the path to the current theme stylesheet
- Source:
- theme.js
Returns:
HREF of current stylesheet
- Type
- string
-
fixPre(newStyleClass)
-
Fix all pre blocks
Parameters:
Name Type Description newStyleClass
string The new style class to fix for
- Source:
- theme.js
-
fixPreBG()
-
Update code block backgrounds
- Source:
- theme.js
-
fixPreWithDelay( [delay])
-
Fix all pre blocks after a delay
Parameters:
Name Type Argument Description delay
number <optional>
Timeout in milliseconds
- Source:
- theme.js
-
fixSinglePre(el)
-
Fix formatting for single
<pre>
blockParameters:
Name Type Description el
DOMElement DOM pre element
- Source:
- theme.js
-
setStyle(newStyle)
-
Set the main preview theme
Parameters:
Name Type Description newStyle
string Path to the new style to set
- Source:
- theme.js
Returns:
Path to new preview theme;
- Type
- string
-
setSyntaxStyle(newStyle)
-
Change syntax highlighting theme
Parameters:
Name Type Description newStyle
string The new style
- Source:
- theme.js
Returns:
path to new stylesheet
- Type
- string
-
updateCSS(cssID)
-
Update or change the current theme
Parameters:
Name Type Description cssID
string The target css element id
- Source:
- theme.js