• Resolved 9tontruck

    (@9tontruck)


    Here’s what I did

    1. copied synchi folder into plugins folder in wordpress
    2. activated pulgin in the setting
    3. opened synchi setting page and saw everything is enabled

    And I opened “new page” page and I don’t see anything related to synchi. Writting php code with <?php also does not work.

    What am I missing?

    https://wordpress.org/plugins/synchi/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter 9tontruck

    (@9tontruck)

    never mind.

    Plugin Author mdjekic

    (@mdjekic)

    Hi,

    I am not sure why you said “never mind” so I am still going to answer. As with WordPress in general, you have the visual editor and text editor that displayed code. It’s still the same – just click on the “Text” button to enter text editor and you will start using Synchi instead of the default editor.

    Cheers.

    Thread Starter 9tontruck

    (@9tontruck)

    Thanks for reply. But Synchi doesn’t fully work in my wp.
    After activating the plugin, when I try to make a new page.
    In “text” tab, I wrote like this:

    [php]
    $wdwd = ‘wd’;
    if (2 == 2) {
    echo ‘wdq’;
    }

    function test() {
    return 10;
    }
    [/php]

    The color of whole text is black. Only brackets ( (), {}, [] ) turns to green only if I click on one of a pair.

    Plugin Author mdjekic

    (@mdjekic)

    [php][/php] is not a standardized syntax for IDEs. The correct PHP tags are: <?php /*code*/ ?> (http://www.php.net/manual/en/language.basic-syntax.phptags.php). That editor was not intended for PHP code in the first place – you are probably using a plugin that enables you to run PHP code inside your post content. Synchi is doing syntax highlight for HTML code but I think it should also work for – proper – PHP tags.

    Thread Starter 9tontruck

    (@9tontruck)

    As a lot of people are using the plugin called “Allow PHP” so it would be great if synchi also highlights code inside of [php][/php]

    Can I manually add additional snippets?

    Plugin Author mdjekic

    (@mdjekic)

    Unfortunately, when it comes to syntax highlighting (and most of the features) in Synchi, it is 100% dependent on CodeMirror (http://codemirror.net/). So, yes – you can – provided that you fork the right version of CodeMirror and extend it. But, that really looks like too much effort for something so simple. So, I would guess using <?php ?> since it will be removed after clicking “Save” – while you are editing using Synchi.

    Thread Starter 9tontruck

    (@9tontruck)

    Using temporary <php sounds good to me. Thank you for your advice. And thank you for the great plugin

    Plugin Author mdjekic

    (@mdjekic)

    Here’s how I see it working (hopefully):

    <?php [PHP] /* code */ [/PHP] ?>

    Thank you for your feedback.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I can't get it work’ is closed to new replies.