• monkeycode
Platform
  • Problems
  • Contests
  • News
  • Help
Back to Help Center
Back to Help Center

General

  • Getting Started
  • Supported Languages

Validators

  • Figure Environment Validator
  • Begin/End Macro Validator
  • Begin Document Validator

Plugin

  • Introduction to Plugins
  • Add Plugin to Problem Package
  • Reading Samples and Test-Cases

Support

  • Contact Us

Add Plugin to Problem Package

Guide how to add a Plugin to Your Problem Package

Adding a Plugin to Your Problem Package

To include a plugin in your problem package (.zip), place it under plugins/<plugin-name>/index.html:

plugins/
  my-visualizer/
    index.html   
    script.js    
    style.css
index.html is required as the entry point to the plugin.

Placing Plugin in your Problem Statement

To insert a plugin into a problem statement, use the \plugin{...} macro.

In problem.en.tex:

...
\plugin{my-visualizer} # Add plugin placeholder anywhere
...

This macro determines where in the problem statement the plugin will be inserted and which plugin will be rendered.

Introduction to Plugins
Reading Samples and Test-Cases