Settings saved successfully!

'; } // Get current settings $github_token = get_option('mcb_github_token', ''); $gitlab_token = get_option('mcb_gitlab_token', ''); $bitbucket_token = get_option('mcb_bitbucket_token', ''); $codeberg_token = get_option('mcb_codeberg_token', ''); $cache_duration = get_option('mcb_cache_duration', 3600); $default_theme = get_option('mcb_default_theme', 'dark'); ?>

Maple Code Blocks Settings

Configure your Maple Code Blocks plugin settings below. Developed by SSP Media.

Platform API Tokens

Optional: Add personal access tokens to increase API rate limits for each platform.

Generate GitHub token (no special permissions needed for public repos)

Generate GitLab token (read_api scope for public repos)

Generate Bitbucket app password (repository read permission)

Generate Codeberg token (read:repository scope)

General Settings

seconds

How long to cache repository files (default: 3600 seconds = 1 hour).
Set to 0 to disable caching.

Default theme for the code viewer. Can be overridden per shortcode.


Usage Instructions

Supported Platforms

This plugin supports repositories from:

Repository Formats

You can specify repositories in multiple ways:

Basic Usage

Use the following shortcode to display repository code:

[maple_code_block repo="owner/repository"]

Platform Examples

Shortcode Parameters

Example

[github_code_viewer repo="facebook/react" theme="dark" height="500px" initial_file="README.md" title="React Source Code"]

Security Features


About

GitHub Code Viewer Version 1.0.0
This plugin displays code from GitHub repositories in a beautiful, safe terminal/IDE-style interface.

Features: