MCPcopy Index your code
hub / github.com/cedaro/shiny-code

github.com/cedaro/shiny-code @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
40 symbols 58 edges 14 files 15 documented · 38%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Shiny Code

A Gutenberg block for editing and displaying code with syntax highlighting.

Requires: PHP 7.0 (or later)
License: GPLv2 (or later)

Animation showing how to convert a code block, set the code language, and change the syntax highlight theme.

Features

  • Choose a language for each code block
  • Toggle whether or not line numbers should display
  • Multiple syntax highlighting themes available
  • Highlight specific lines to draw attention to them
  • Choose a custom highlight color
  • Easily transform to/from core Code blocks
  • Code is saved as plain text, allowing it to be displayed in feeds and other contexts

Languages

Support for the following languages is included by default:

  • CSS
  • HTML
  • JavaScript
  • JSON
  • PHP

Additional languages can be registered using the shiny_code_languages filter.

Themes

Atom One Light and Atom One Dark themes are included and additional themes can be registered using the shiny_code_themes filter.

CodeMirror and Prism.js don't tokenize code exactly the same, so there will likely be slight differences between the colors in the editor and on the frontend.

Installation

To install Shiny Code:

  1. Download the latest release from GitHub (the saved file should be named shiny-code-{version}.zip).
  2. Go to the Plugins → Add New screen in your WordPress admin panel.
  3. Click the Upload button at the top next to the “Add Plugins” title.
  4. Upload the zip file downloaded in the first step.
  5. Click the Activate Plugin link after installation completes.

From Source

To build Shiny Code from source, clone this repository in wp-content/plugins/, then run the build steps:

git clone https://github.com/cedaro/shiny-code.git
cd shiny-code
composer install
npm install
npm run build

After building the plugin, go to the Plugins → Installed Plugins screen in your WordPress admin panel to activate Shiny Code.

Core symbols most depended-on inside this repo

register_hooks
called by 4
php/BlockType/Code.php
get_languages
called by 3
php/Plugin.php
get_themes
called by 2
php/Plugin.php
highlightLines
called by 2
blocks/code/code-editor.js
updateLanguageSettings
called by 2
blocks/code/code-editor.js
getLanguageSettings
called by 1
blocks/code/settings.js
display_missing_dependencies_notice
called by 0
php/functions.php
register_block_type
called by 0
php/BlockType/Code.php

Shape

Method 18
Function 14
Class 8

Languages

TypeScript62%
PHP38%

Modules by API surface

blocks/code/code-editor.js11 symbols
blocks/code/data.js7 symbols
php/BlockType/Code.php5 symbols
blocks/code/edit.js4 symbols
php/Provider/Settings.php3 symbols
php/Provider/PrismAssets.php3 symbols
php/Plugin.php3 symbols
blocks/code/sidebar.js2 symbols
php/functions.php1 symbols
blocks/code/settings.js1 symbols

For agents

$ claude mcp add shiny-code \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact