• Resolved Dariusz

    (@idarek)


    & amp ;

    Hi,
    Noticed an issue with plugin that been discussed on Git but not found a solution to fix that and string replace in functions.php not working for myself. Any solution?

    Tried in Advanced Gutenberg Block and in their [code] block code is displaying correctly, but don't want to change plugin just for that.

    What I noticed, that text pasted by default between
    <!-- wp:syntaxhighlighter/code -->
    is inserted in <pre>

    when edited in html code and removed pre all displaying fine

    • This topic was modified 4 years, 6 months ago by Dariusz.
    • This topic was modified 4 years, 6 months ago by Dariusz.
    • This topic was modified 4 years, 6 months ago by Dariusz.
    • This topic was modified 4 years, 6 months ago by Dariusz.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Renatho (a11n)

    (@renathoc)

    Hi @idarek !

    I tested this solution and it worked for me: https://github.com/Automattic/syntaxhighlighter/issues/98#issuecomment-471322528

    Basically, I created a block with the language as PHP, added the code a && b < c and it worked well. If you try to this same block, it doesn’t work for you?

    If not, I recommend you to try deactivating some plugins to see if something can be conflicting with the SyntaxHighlighter Evolved. Otherwise, feel free to contact us again with more details to reproduce your issue.

    Deleting my comment as redundant.

    Thread Starter Dariusz

    (@idarek)

    Thank you. It didn’t work with my environment. Wiggled with plugins but there are also caching happening, hence too many variations that can be involved. Didn’t really want to add a function to the theme to add this functionality of the plugin hence decided to deactivate it for now and keep using Gutenberg Code block.

    btw. Great plugin, works well for my purpose for a significant time.

    Maybe in future, if I will need something more, I will come back to it. Hopefully, somebody will find a solution without need of adding function to a theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘& amp instead && in code’ is closed to new replies.