🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

mcfhighlight

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcfhighlight

mcfunction highlight module

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

classcolor
mcf-cmdpurple
mcf-arglightgreen
mcf-numpink
mcf-typeyellow

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"))

Keywords

mcfunction

FAQs

Package last updated on 18 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts