urvanov-ru / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/urvanov-syntax-highlighter/
GNU General Public License v3.0
60 stars 11 forks source link

Code blocks shows in one line when using Divi Builder #45

Open xEmp3ror opened 1 year ago

xEmp3ror commented 1 year ago

Hi! When I'm using the builder thats comes whith the theme Divi, called Divi Builder, I try to insert a block of code. In the menu of insert new item, doesn't appear the Syntax Highligter, but using a "text" object, I can add the code snippet between pre tags, and It's recognized by the Highlighter.

The problem is that it shows all the code in one line and It's shows html tags everywhere.

image

How can I fix it? Thank you!

urvanov-ru commented 1 year ago

Hi, @xEmp3ror . The button in text block is for single line code. Multiline code can be inserted only with special Urvanov Syntax Highlighter block. You can see in the video