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

Syntax highlighting not working with custom fields #44

Closed heathcliff closed 2 years ago

heathcliff commented 2 years ago

I'm having an issue with my WordPress site where content in WYSIWYG custom fields (using Advanced Custom Fields) is not rendering the syntax highlighted code. Code in body copy works, just nothing in those custom fields.

Is there any way to add the syntax highlighting to custom fields? Thanks in advance.

heathcliff commented 2 years ago

Closing since Urvanov_Syntax_Highlighter_Plugin::highlight() works. But would be a great feature to have this highlight WYSIWYG fields automatically :)