Changeset 3447159
- Timestamp:
- 01/26/2026 02:24:21 PM (2 months ago)
- Location:
- syntax-highlight-nano
- Files:
-
- 50 added
- 4 deleted
- 6 edited
- 1 copied
-
tags/1.1.1 (copied) (copied from syntax-highlight-nano/trunk)
-
tags/1.1.1/.gitattributes (added)
-
tags/1.1.1/.github (deleted)
-
tags/1.1.1/.phpcs.xml (added)
-
tags/1.1.1/.wordpress-org (added)
-
tags/1.1.1/.wordpress-org/screenshot-1.png (added)
-
tags/1.1.1/.wordpress-org/screenshot-2.png (added)
-
tags/1.1.1/.wordpress-org/screenshot-3.png (added)
-
tags/1.1.1/.wordpress-org/screenshot-4.png (added)
-
tags/1.1.1/build (added)
-
tags/1.1.1/build/.vite (added)
-
tags/1.1.1/build/.vite/manifest.json (added)
-
tags/1.1.1/build/admin.js (added)
-
tags/1.1.1/build/admin.js.map (added)
-
tags/1.1.1/build/editor.css (added)
-
tags/1.1.1/build/editor.js (added)
-
tags/1.1.1/build/editor.js.map (added)
-
tags/1.1.1/build/frontend-app.js (added)
-
tags/1.1.1/build/frontend-app.js.map (added)
-
tags/1.1.1/build/frontend.css (added)
-
tags/1.1.1/build/themes (added)
-
tags/1.1.1/build/themes/atom-one-dark.css (added)
-
tags/1.1.1/build/themes/default.css (added)
-
tags/1.1.1/build/themes/github-dark.css (added)
-
tags/1.1.1/build/themes/github.css (added)
-
tags/1.1.1/build/themes/monokai.css (added)
-
tags/1.1.1/build/themes/vs.css (added)
-
tags/1.1.1/includes/admin.php (modified) (4 diffs)
-
tags/1.1.1/readme-ja.txt (deleted)
-
tags/1.1.1/readme.txt (modified) (4 diffs)
-
tags/1.1.1/syntax-highlight-nano.php (modified) (6 diffs)
-
trunk/.gitattributes (added)
-
trunk/.github (deleted)
-
trunk/.phpcs.xml (added)
-
trunk/.wordpress-org (added)
-
trunk/.wordpress-org/screenshot-1.png (added)
-
trunk/.wordpress-org/screenshot-2.png (added)
-
trunk/.wordpress-org/screenshot-3.png (added)
-
trunk/.wordpress-org/screenshot-4.png (added)
-
trunk/build (added)
-
trunk/build/.vite (added)
-
trunk/build/.vite/manifest.json (added)
-
trunk/build/admin.js (added)
-
trunk/build/admin.js.map (added)
-
trunk/build/editor.css (added)
-
trunk/build/editor.js (added)
-
trunk/build/editor.js.map (added)
-
trunk/build/frontend-app.js (added)
-
trunk/build/frontend-app.js.map (added)
-
trunk/build/frontend.css (added)
-
trunk/build/themes (added)
-
trunk/build/themes/atom-one-dark.css (added)
-
trunk/build/themes/default.css (added)
-
trunk/build/themes/github-dark.css (added)
-
trunk/build/themes/github.css (added)
-
trunk/build/themes/monokai.css (added)
-
trunk/build/themes/vs.css (added)
-
trunk/includes/admin.php (modified) (4 diffs)
-
trunk/readme-ja.txt (deleted)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/syntax-highlight-nano.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
syntax-highlight-nano/tags/1.1.1/includes/admin.php
r3418672 r3447159 350 350 private function get_available_themes() { 351 351 // キャッシュキー 352 $cache_key = 'synano_ themes_' . get_locale();352 $cache_key = 'synano_v1_themes_' . get_locale(); 353 353 354 354 // キャッシュから取得を試行 … … 383 383 public function get_available_languages() { 384 384 // キャッシュキー 385 $cache_key = 'synano_ languages_' . get_locale();385 $cache_key = 'synano_v1_languages_' . get_locale(); 386 386 387 387 // キャッシュから取得を試行 … … 393 393 $languages = array( 394 394 'auto' => __( 'Auto Detect', 'syntax-highlight-nano' ), 395 'applescript' => 'AppleScript', 395 396 'bash' => 'Bash', 396 397 'c' => 'C', … … 445 446 446 447 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 ); 449 450 } 450 451 } -
syntax-highlight-nano/tags/1.1.1/readme.txt
r3418672 r3447159 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1. 0.47 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Adds modern syntax highlighting to WordPress's standard code block with highlight.js.11 Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library. 12 12 13 13 == Description == … … 16 16 It integrates seamlessly with the Gutenberg editor, providing a consistent look and feel between the editor and the frontend. 17 17 Because it extends the existing "Code" block, there is no need for a separate custom block or switching between different block types. 18 This plugin is built on top of **highlight.js**, ensuring accurate and performant syntax highlighting for a wide variety of languages. 18 19 19 20 = Features = … … 46 47 47 48 = 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.49 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, PowerShell, and AppleScript. 49 50 50 51 = Will this affect my existing code blocks? = … … 68 69 69 70 == Changelog == 71 72 = 1.1.1 = 73 * Bug Fix. 74 75 = 1.1.0 = 76 * Added support for AppleScript. 77 * Update CSS. 70 78 71 79 = 1.0.4 = -
syntax-highlight-nano/tags/1.1.1/syntax-highlight-nano.php
r3418672 r3447159 4 4 * Plugin URI: https://wordpress.org/plugins/syntax-highlight-nano 5 5 * Description: Adds modern syntax highlighting to the core/code block with highlight.js 6 * Version: 1. 0.46 * Version: 1.1.1 7 7 * Author: Takashi Fujisaki 8 8 * Author URI: https://yuiami.jp … … 131 131 wp_enqueue_script( 132 132 'synano-editor', 133 SYNANO_URL . ' dist/editor.js',133 SYNANO_URL . 'build/editor.js', 134 134 array( 'wp-blocks', 'wp-element', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-hooks' ), 135 135 SYNANO_VERSION, … … 146 146 wp_enqueue_style( 147 147 'synano-editor-extra', 148 SYNANO_URL . ' dist/editor.css',148 SYNANO_URL . 'build/editor.css', 149 149 array(), 150 150 SYNANO_VERSION … … 199 199 wp_enqueue_script( 200 200 'synano-frontend', 201 SYNANO_URL . ' dist/frontend-app.js',201 SYNANO_URL . 'build/frontend-app.js', 202 202 array(), 203 SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . ' dist/frontend-app.js' ),203 SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'build/frontend-app.js' ), 204 204 true 205 205 ); … … 215 215 wp_enqueue_style( 216 216 'synano-frontend', 217 SYNANO_URL . ' dist/frontend.css',217 SYNANO_URL . 'build/frontend.css', 218 218 array(), 219 219 SYNANO_VERSION … … 225 225 226 226 // ローカルのテーマCSSファイルを読み込み 227 $theme_css_path = SYNANO_PATH . " dist/themes/{$theme}.css";227 $theme_css_path = SYNANO_PATH . "build/themes/{$theme}.css"; 228 228 if ( file_exists( $theme_css_path ) ) { 229 229 wp_enqueue_style( 230 230 'synano-theme', 231 SYNANO_URL . " dist/themes/{$theme}.css",231 SYNANO_URL . "build/themes/{$theme}.css", 232 232 array( 'synano-frontend' ), 233 233 SYNANO_VERSION -
syntax-highlight-nano/trunk/includes/admin.php
r3418672 r3447159 350 350 private function get_available_themes() { 351 351 // キャッシュキー 352 $cache_key = 'synano_ themes_' . get_locale();352 $cache_key = 'synano_v1_themes_' . get_locale(); 353 353 354 354 // キャッシュから取得を試行 … … 383 383 public function get_available_languages() { 384 384 // キャッシュキー 385 $cache_key = 'synano_ languages_' . get_locale();385 $cache_key = 'synano_v1_languages_' . get_locale(); 386 386 387 387 // キャッシュから取得を試行 … … 393 393 $languages = array( 394 394 'auto' => __( 'Auto Detect', 'syntax-highlight-nano' ), 395 'applescript' => 'AppleScript', 395 396 'bash' => 'Bash', 396 397 'c' => 'C', … … 445 446 446 447 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 ); 449 450 } 450 451 } -
syntax-highlight-nano/trunk/readme.txt
r3418672 r3447159 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1. 0.47 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Adds modern syntax highlighting to WordPress's standard code block with highlight.js.11 Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library. 12 12 13 13 == Description == … … 16 16 It integrates seamlessly with the Gutenberg editor, providing a consistent look and feel between the editor and the frontend. 17 17 Because it extends the existing "Code" block, there is no need for a separate custom block or switching between different block types. 18 This plugin is built on top of **highlight.js**, ensuring accurate and performant syntax highlighting for a wide variety of languages. 18 19 19 20 = Features = … … 46 47 47 48 = 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.49 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, PowerShell, and AppleScript. 49 50 50 51 = Will this affect my existing code blocks? = … … 68 69 69 70 == Changelog == 71 72 = 1.1.1 = 73 * Bug Fix. 74 75 = 1.1.0 = 76 * Added support for AppleScript. 77 * Update CSS. 70 78 71 79 = 1.0.4 = -
syntax-highlight-nano/trunk/syntax-highlight-nano.php
r3418672 r3447159 4 4 * Plugin URI: https://wordpress.org/plugins/syntax-highlight-nano 5 5 * Description: Adds modern syntax highlighting to the core/code block with highlight.js 6 * Version: 1. 0.46 * Version: 1.1.1 7 7 * Author: Takashi Fujisaki 8 8 * Author URI: https://yuiami.jp … … 131 131 wp_enqueue_script( 132 132 'synano-editor', 133 SYNANO_URL . ' dist/editor.js',133 SYNANO_URL . 'build/editor.js', 134 134 array( 'wp-blocks', 'wp-element', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-hooks' ), 135 135 SYNANO_VERSION, … … 146 146 wp_enqueue_style( 147 147 'synano-editor-extra', 148 SYNANO_URL . ' dist/editor.css',148 SYNANO_URL . 'build/editor.css', 149 149 array(), 150 150 SYNANO_VERSION … … 199 199 wp_enqueue_script( 200 200 'synano-frontend', 201 SYNANO_URL . ' dist/frontend-app.js',201 SYNANO_URL . 'build/frontend-app.js', 202 202 array(), 203 SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . ' dist/frontend-app.js' ),203 SYNANO_VERSION . '.' . filemtime( SYNANO_PATH . 'build/frontend-app.js' ), 204 204 true 205 205 ); … … 215 215 wp_enqueue_style( 216 216 'synano-frontend', 217 SYNANO_URL . ' dist/frontend.css',217 SYNANO_URL . 'build/frontend.css', 218 218 array(), 219 219 SYNANO_VERSION … … 225 225 226 226 // ローカルのテーマCSSファイルを読み込み 227 $theme_css_path = SYNANO_PATH . " dist/themes/{$theme}.css";227 $theme_css_path = SYNANO_PATH . "build/themes/{$theme}.css"; 228 228 if ( file_exists( $theme_css_path ) ) { 229 229 wp_enqueue_style( 230 230 'synano-theme', 231 SYNANO_URL . " dist/themes/{$theme}.css",231 SYNANO_URL . "build/themes/{$theme}.css", 232 232 array( 'synano-frontend' ), 233 233 SYNANO_VERSION
Note: See TracChangeset
for help on using the changeset viewer.