Super Code Highlight

Matildevoldsen

AuthorMatildevoldsenPlugin TypeCommunity PluginPriceFreeVersionvlatestLicenseMIT
NativePHP^3.0PHP^8.4Laravel13+iOS18.2+Android33+

NativePHP mobile UI plugin for Shiki-powered syntax highlighting, rendered with native SwiftUI (iOS) and Jetpack Compose (Android) views — no WebView, no highlight.js.

Features

  • Native <native:shiki-code /> Blade component
  • Shiki 4.2.0 runtime bundled from official Shiki packages
  • iOS runtime through JavaScriptCore
  • Android runtime through Jetpack JavaScriptEngine
  • Native token rows rendered as SwiftUI text spans and Compose spans
  • Full language and theme registry from Shiki

Compatibility

Platform Minimum
iOS 18.2+
Android API 33+
PHP 8.4+
Laravel 13+

Installation

composer require tilly/nativephp-shiki

Register the plugin in app/Providers/NativeServiceProvider.php:

use Tilly\NativephpShiki\ShikiServiceProvider;

public function plugins(): array
{
    return [
        ShikiServiceProvider::class,
    ];
}

Usage

<native:shiki-code
    language="php"
    theme="github-dark"
    :code="$codeString"
/>