mcfhighlight
v1.0.0
Published
mcfunction highlight module
Downloads
4
Maintainers
Readme
Mcfunction highlight
This module is use on mcfunction highlight !
Method
mcfHighLight( mcfunction : string ) : string Please put string to a pre element!!!
- mcfunction --- mcfunction code
Style sheet
Please use "code.css" on ur page if ur dont want make new style class | class | color | | --- | --- | | mcf-cmd | purple | | mcf-arg | lightgreen | | mcf-num | pink | | mcf-type | yellow |
Example
function main( ele ){
ele.innerHTML = mcfHighLight( `
say hello world
#Print helloWorld
tp @p name
tp name @p
fill ~1 ~1 ~1 ^5 ^5 ^5 bedrock`)
}
main(document.getElementById( "load"))