Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter harrisonqi

    (@harrisonqi)

    Thank you very much, I think I have found a solution. It is not a problem with your plugin.

    Because I am not a PHP developer, I do n’t know how to solve it. In the past few days, I have to study the source code in order to use your excellent plug-ins.

    Unexpectedly, because your plugin is very good, the theme I used is actually built with PrismJS! And the version is 1.17.1 of the old version, and does not include Dart language support.

    I think I can research and solve this problem by myself!

    Thank you very much for your help.
    I really like your plugin!

    Thread Starter harrisonqi

    (@harrisonqi)

    By the way, if I use Highlight.js everything works fine, but I love
    Prismatic More

    • This reply was modified 4 years, 10 months ago by harrisonqi.
    • This reply was modified 4 years, 10 months ago by harrisonqi.
    Thread Starter harrisonqi

    (@harrisonqi)

    Thank you @specialk .

    I guess you can’t open my website because China blocked.

    Here’s the code:

    
    import 'package:flutter/material.dart';
    import 'package:flutter/services.dart';
    
    Future main() async {
      // set preferred orientations (landscape only)
      await SystemChrome.setPreferredOrientations([
        DeviceOrientation.landscapeLeft,
        DeviceOrientation.landscapeRight,
      ]);
    
      // disable all UI overlays (show fullscreen)
      await SystemChrome.setEnabledSystemUIOverlays([]);
    }
    
    // start app
    runApp(
      Directionality(
        textDirection: TextDirection.ltr,
        child: Stack(
          children: [
            // placeholder for game
            Container(
              color: Color(0xff27ae60),
            ),
    
            // joypad overlay
            Container(),
          ],
        ),
      ),
    );
    

    the html:

    
    <div class="code-toolbar"><pre class="wp-block-prismatic-blocks  language-dart"><code class="  language-dart">import 'package:flutter/material.dart';
    import 'package:flutter/services.dart';
    
    Future main() async {
      // set preferred orientations (landscape only)
      await SystemChrome.setPreferredOrientations([
        DeviceOrientation.landscapeLeft,
        DeviceOrientation.landscapeRight,
      ]);
    
      // disable all UI overlays (show fullscreen)
      await SystemChrome.setEnabledSystemUIOverlays([]);
    }
    
    // start app
    runApp(
      Directionality(
        textDirection: TextDirection.ltr,
        child: Stack(
          children: [
            // placeholder for game
            Container(
              color: Color(0xff27ae60),
            ),
    
            // joypad overlay
            Container(),
          ],
        ),
      ),
    );</code></pre><div class="toolbar"><div class="toolbar-item"><span>Dart</span></div></div></div>
    

    I noticed: using dart language will not be separated by “<span>”

    Thank you.

    Thread Starter harrisonqi

    (@harrisonqi)

    I’m really really sorry. I just broke my website before. Now you can open this page to see this.

    By the way, I also don’t want to limit the height of the code block, no scroll bar is needed.

    (I do not well in English, sorry)

    Thank you so much.

    Fatal error: Uncaught Exception: Incorrect string value: ‘\xF0\x9F\x98\x9D\xF0\x9F…’ for column ‘description’ at row 1 in /var/www/html/wp-content/plugins/wordpress-seo/polyfills/pdo/pdo-mysqli-statement-polyfill.php:163
    Stack trace:
    #0 /var/www/html/wp-content/plugins/wordpress-seo/vendor_prefixed/j4mie/idiorm/idiorm.php(464): Yoast\WP\Polyfills\PDO\PDO_MySQLi_Statement_Polyfill->execute()
    #1 /var/www/html/wp-content/plugins/wordpress-seo/vendor_prefixed/j4mie/idiorm/idiorm.php(1983): YoastSEO_Vendor\ORM::_execute(‘INSERT INTO `wp…’, Array, ‘default’)
    #2 /var/www/html/wp-content/plugins/wordpress-seo/src/orm/yoast-model.php(662): YoastSEO_Vendor\ORM->save()
    #3 /var/www/html/wp-content/plugins/wordpress-seo/src/models/indexable.php(160): Yoast\WP\SEO\ORM\Yoast_Model->save()
    #4 /var/www/html/wp-content/plugins/wordpress-seo/src/builders/indexable-builder.php(276): Yoast\WP\SEO\Models\Indexable->save()
    #5 /var/www/html/wp-content/plugins/wordpress-seo/src/builders/indexable-builder.php(173): Yoast\WP\SEO\Builders\Indexa in /var/www/html/wp-content/plugins/wordpress-seo/polyfills/pdo/pdo-mysqli-statement-polyfill.php on line 163

Viewing 5 replies - 1 through 5 (of 5 total)