Plugin Directory

Changeset 3447159


Ignore:
Timestamp:
01/26/2026 02:24:21 PM (2 months ago)
Author:
ejointjp
Message:

Update to version 1.1.1 from GitHub

Location:
syntax-highlight-nano
Files:
50 added
4 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • syntax-highlight-nano/tags/1.1.1/includes/admin.php

    r3418672 r3447159  
    350350    private function get_available_themes() {
    351351        // キャッシュキー
    352         $cache_key = 'synano_themes_' . get_locale();
     352        $cache_key = 'synano_v1_themes_' . get_locale();
    353353
    354354        // キャッシュから取得を試行
     
    383383    public function get_available_languages() {
    384384        // キャッシュキー
    385         $cache_key = 'synano_languages_' . get_locale();
     385        $cache_key = 'synano_v1_languages_' . get_locale();
    386386
    387387        // キャッシュから取得を試行
     
    393393        $languages = array(
    394394            'auto'       => __( 'Auto Detect', 'syntax-highlight-nano' ),
     395            'applescript' => 'AppleScript',
    395396            'bash'       => 'Bash',
    396397            'c'          => 'C',
     
    445446
    446447        foreach ( $locales as $locale ) {
    447             delete_transient( 'synano_themes_' . $locale );
    448             delete_transient( 'synano_languages_' . $locale );
     448            delete_transient( 'synano_v1_themes_' . $locale );
     449            delete_transient( 'synano_v1_languages_' . $locale );
    449450        }
    450451    }
  • syntax-highlight-nano/tags/1.1.1/readme.txt

    r3418672 r3447159  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.4
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Adds modern syntax highlighting to WordPress's standard code block with highlight.js.
     11Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library.
    1212
    1313== Description ==
     
    1616It integrates seamlessly with the Gutenberg editor, providing a consistent look and feel between the editor and the frontend.
    1717Because it extends the existing "Code" block, there is no need for a separate custom block or switching between different block types.
     18This plugin is built on top of **highlight.js**, ensuring accurate and performant syntax highlighting for a wide variety of languages.
    1819
    1920= Features =
     
    4647
    4748= What programming languages are supported? =
    48 Syntax Highlight Nano supports a wide range of languages including JavaScript, TypeScript, PHP, Python, Ruby, Java, C#, C++, C, Go, Rust, Swift, Kotlin, HTML, CSS, SCSS, Less, JSON, XML, YAML, Markdown, SQL, Bash, Shell, and PowerShell.
     49Syntax Highlight Nano supports a wide range of languages including JavaScript, TypeScript, PHP, Python, Ruby, Java, C#, C++, C, Go, Rust, Swift, Kotlin, HTML, CSS, SCSS, Less, JSON, XML, YAML, Markdown, SQL, Bash, Shell, PowerShell, and AppleScript.
    4950
    5051= Will this affect my existing code blocks? =
     
    6869
    6970== Changelog ==
     71
     72= 1.1.1 =
     73* Bug Fix.
     74
     75= 1.1.0 =
     76* Added support for AppleScript.
     77* Update CSS.
    7078
    7179= 1.0.4 =
  • syntax-highlight-nano/tags/1.1.1/syntax-highlight-nano.php

    r3418672 r3447159  
    44 * Plugin URI: https://wordpress.org/plugins/syntax-highlight-nano
    55 * Description: Adds modern syntax highlighting to the core/code block with highlight.js
    6  * Version: 1.0.4
     6 * Version: 1.1.1
    77 * Author: Takashi Fujisaki
    88 * Author URI: https://yuiami.jp
     
    131131        wp_enqueue_script(
    132132            'synano-editor',
    133             SYNANO_URL . 'dist/editor.js',
     133            SYNANO_URL . 'build/editor.js',
    134134            array( 'wp-blocks', 'wp-element', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-hooks' ),
    135135            SYNANO_VERSION,
     
    146146        wp_enqueue_style(
    147147            'synano-editor-extra',
    148             SYNANO_URL . 'dist/editor.css',
     148            SYNANO_URL . 'build/editor.css',
    149149            array(),
    150150            SYNANO_VERSION
     
    199199        wp_enqueue_script(
    200200            'synano-frontend',
    201             SYNANO_URL . 'dist/frontend-app.js',
     201            SYNANO_URL . 'build/frontend-app.js',
    202202            array(),
    203             SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'dist/frontend-app.js' ),
     203            SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'build/frontend-app.js' ),
    204204            true
    205205        );
     
    215215        wp_enqueue_style(
    216216            'synano-frontend',
    217             SYNANO_URL . 'dist/frontend.css',
     217            SYNANO_URL . 'build/frontend.css',
    218218            array(),
    219219            SYNANO_VERSION
     
    225225
    226226        // ローカルのテーマCSSファイルを読み込み
    227         $theme_css_path = SYNANO_PATH . "dist/themes/{$theme}.css";
     227        $theme_css_path = SYNANO_PATH . "build/themes/{$theme}.css";
    228228        if ( file_exists( $theme_css_path ) ) {
    229229            wp_enqueue_style(
    230230                'synano-theme',
    231                 SYNANO_URL . "dist/themes/{$theme}.css",
     231                SYNANO_URL . "build/themes/{$theme}.css",
    232232                array( 'synano-frontend' ),
    233233                SYNANO_VERSION
  • syntax-highlight-nano/trunk/includes/admin.php

    r3418672 r3447159  
    350350    private function get_available_themes() {
    351351        // キャッシュキー
    352         $cache_key = 'synano_themes_' . get_locale();
     352        $cache_key = 'synano_v1_themes_' . get_locale();
    353353
    354354        // キャッシュから取得を試行
     
    383383    public function get_available_languages() {
    384384        // キャッシュキー
    385         $cache_key = 'synano_languages_' . get_locale();
     385        $cache_key = 'synano_v1_languages_' . get_locale();
    386386
    387387        // キャッシュから取得を試行
     
    393393        $languages = array(
    394394            'auto'       => __( 'Auto Detect', 'syntax-highlight-nano' ),
     395            'applescript' => 'AppleScript',
    395396            'bash'       => 'Bash',
    396397            'c'          => 'C',
     
    445446
    446447        foreach ( $locales as $locale ) {
    447             delete_transient( 'synano_themes_' . $locale );
    448             delete_transient( 'synano_languages_' . $locale );
     448            delete_transient( 'synano_v1_themes_' . $locale );
     449            delete_transient( 'synano_v1_languages_' . $locale );
    449450        }
    450451    }
  • syntax-highlight-nano/trunk/readme.txt

    r3418672 r3447159  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.4
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Adds modern syntax highlighting to WordPress's standard code block with highlight.js.
     11Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library.
    1212
    1313== Description ==
     
    1616It integrates seamlessly with the Gutenberg editor, providing a consistent look and feel between the editor and the frontend.
    1717Because it extends the existing "Code" block, there is no need for a separate custom block or switching between different block types.
     18This plugin is built on top of **highlight.js**, ensuring accurate and performant syntax highlighting for a wide variety of languages.
    1819
    1920= Features =
     
    4647
    4748= What programming languages are supported? =
    48 Syntax Highlight Nano supports a wide range of languages including JavaScript, TypeScript, PHP, Python, Ruby, Java, C#, C++, C, Go, Rust, Swift, Kotlin, HTML, CSS, SCSS, Less, JSON, XML, YAML, Markdown, SQL, Bash, Shell, and PowerShell.
     49Syntax Highlight Nano supports a wide range of languages including JavaScript, TypeScript, PHP, Python, Ruby, Java, C#, C++, C, Go, Rust, Swift, Kotlin, HTML, CSS, SCSS, Less, JSON, XML, YAML, Markdown, SQL, Bash, Shell, PowerShell, and AppleScript.
    4950
    5051= Will this affect my existing code blocks? =
     
    6869
    6970== Changelog ==
     71
     72= 1.1.1 =
     73* Bug Fix.
     74
     75= 1.1.0 =
     76* Added support for AppleScript.
     77* Update CSS.
    7078
    7179= 1.0.4 =
  • syntax-highlight-nano/trunk/syntax-highlight-nano.php

    r3418672 r3447159  
    44 * Plugin URI: https://wordpress.org/plugins/syntax-highlight-nano
    55 * Description: Adds modern syntax highlighting to the core/code block with highlight.js
    6  * Version: 1.0.4
     6 * Version: 1.1.1
    77 * Author: Takashi Fujisaki
    88 * Author URI: https://yuiami.jp
     
    131131        wp_enqueue_script(
    132132            'synano-editor',
    133             SYNANO_URL . 'dist/editor.js',
     133            SYNANO_URL . 'build/editor.js',
    134134            array( 'wp-blocks', 'wp-element', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-hooks' ),
    135135            SYNANO_VERSION,
     
    146146        wp_enqueue_style(
    147147            'synano-editor-extra',
    148             SYNANO_URL . 'dist/editor.css',
     148            SYNANO_URL . 'build/editor.css',
    149149            array(),
    150150            SYNANO_VERSION
     
    199199        wp_enqueue_script(
    200200            'synano-frontend',
    201             SYNANO_URL . 'dist/frontend-app.js',
     201            SYNANO_URL . 'build/frontend-app.js',
    202202            array(),
    203             SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'dist/frontend-app.js' ),
     203            SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'build/frontend-app.js' ),
    204204            true
    205205        );
     
    215215        wp_enqueue_style(
    216216            'synano-frontend',
    217             SYNANO_URL . 'dist/frontend.css',
     217            SYNANO_URL . 'build/frontend.css',
    218218            array(),
    219219            SYNANO_VERSION
     
    225225
    226226        // ローカルのテーマCSSファイルを読み込み
    227         $theme_css_path = SYNANO_PATH . "dist/themes/{$theme}.css";
     227        $theme_css_path = SYNANO_PATH . "build/themes/{$theme}.css";
    228228        if ( file_exists( $theme_css_path ) ) {
    229229            wp_enqueue_style(
    230230                'synano-theme',
    231                 SYNANO_URL . "dist/themes/{$theme}.css",
     231                SYNANO_URL . "build/themes/{$theme}.css",
    232232                array( 'synano-frontend' ),
    233233                SYNANO_VERSION
Note: See TracChangeset for help on using the changeset viewer.