Tag: code block
-
Post Views: 23 When displaying code snippets containing emoji in WordPress, it is often encountered that Emoji is converted into 🎉 Or <img> label problem. This article records a complete investigation and solution process. problem In the code block of the WordPress Gutenburg editor, write the following PHP code, as shown in Figure 1: After saving the article, the front…
-
Post Views: 49 The correct display of code blocks is critical when writing a technical blog. Recently, I’m having trouble with code blocks using the WordPress Gutenberg editor, and I’m struggling to find a better solution. After repeated exploration, I finally summed up a complete set of ‘from manual to automatic’ complete plan, which can not only solve the problem…
-
Post Views: 114 The background When writing a technical blog with a WordPress block editor (Gutenberg), I often need to include multiple code blocks in one article, such as: SQL query (SQL) Go sample code (GO) PHP code (PHP) Description text (Text) Usually, an article will contain about 10 code blocks in combination. This kind of content was very stable…