Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'd like to show source code (C, Python, etc.) on our pages and blogs.
I clicked the "Show HTML" button and enter HTML code in the rich text editor, but the code is modified ("<" is replaced to "<", newline code is erased, and so on).
So, I cannot display as I typed although using <pre> tags.
(1) Do you have any idea to deactivate the function of code modification?
(2) Or, how can I make some sections to use raw HTML code in the pages?
When you use the rich text editor, if you need to paste the HTML source code, you first need to open the source switch.
Thank you for your reply.
I use the "source switch" and edit the HTML directly.
Although I use the <pre> tags, the code I wrote was automatically modified.
For example, when I write a character of "<", it is modified to "<".
I'd like to show it exactly as I wrote.
Hello @NB1738,
You can enter the tag directly in your content, without going to the HTML editor.
Hope it helps. Let us know if you need any help.
Regards,
CedCommerce
Thank you for your reply.
I'd like to show some programs on the blogs or pages.
So, I'd like to use <pre> tags and show exactly as I type.
I do not want to show HTML tags.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025