logo

/repo|v1.4.10

Class

new CodeBlockManager()codeBlockManager.jsline 10

Class Code Block Manager

Static Methods

getHighlightJSLanguages()codeBlockManager.jsline 56

get supported languages by highlight-js

RETURNS:
{

Array.<string>

} - supported languages by highlight-js

Instance Methods

createCodeBlockHtml(language, codeText)codeBlockManager.jsline 39

Create code block html.

PARAMETERS
NameTypeDescription

language

string

code block language

codeText

string

code text

RETURNS:
{

string

}

getReplacer(language)codeBlockManager.jsline 29

get replacer for code block

PARAMETERS
NameTypeDescription

language

string

code block type

RETURNS:
{

function

} - replacer function

setReplacer(language, replacer)codeBlockManager.jsline 20

Set replacer for code block

PARAMETERS
NameTypeDescription

language

string

code block language

replacer

function

replacer function to code block element

Resizable