Skip to content

bth123/mcf-ansi-highlighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCF ansi highlighter

User-application for discord

With new user-app feature you can now have mcfunction highlight everywhere in discord. To obtain it just click [Authorize]. The app also open source btw

showc.mp4

The Highlighter compared to Syntax mcfunction

highlighter vsc

highlighter vsc

Use in your projects

If you want to use the highlighter in your project, please leave credit to the original github repo.

  1. Downlaod database.json and put it in your project folder.

Python

  1. Download main.py and put it in your project folder.
  2. From highlighter import class Hl in your code.
  3. Use Hl.highlight("<Your function here>") to get the ansi highlighted function.

JavaScript [outdated]

  1. Download main.js and put it in your project folder.
  2. Import Hl class from highlighter in your code.
  3. Use Hl.highlight("<Your function here>") to get the ansi highlighted function.

Note: if database.json not in the folder where your code is running, change path to it in highlighter's main.py

About

ANSI highlight for mcfunction that imitates mcfunction-syntax's highlight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published