<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Showing code blocks on knowledge base articles in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Showing-code-blocks-on-knowledge-base-articles/m-p/1095521#M41795</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/870516"&gt;@aabendan&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Great question. The answer is — yes, but partially. The Knowledge Base editor has a “code format” tool in the toolbar. But it's not at the same level of robustness as what you see in the dev docs. Meaning you can add code samples, but it lacks the formatting and the nice “copy + paste” option for folks to use with your samples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-01-16 at 12.16.49 2@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136174i6D32B3EC3BFC68A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-01-16 at 12.16.49 2@2x.png" alt="CleanShot 2025-01-16 at 12.16.49 2@2x.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My quick test&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-01-16 at 12.16.22@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136176i17B3BE6F72FA6CB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-01-16 at 12.16.22@2x.png" alt="CleanShot 2025-01-16 at 12.16.22@2x.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It took a little tweaking to get the line breaks and indentation to look decent, but it's doable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a moment, I think adding this to the &lt;STRONG&gt;&lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas" target="_blank" rel="noopener"&gt;Ideas&lt;/A&gt;&lt;/STRONG&gt; forum as a feature request would be helpful. I can definitely see the use case for having a more complete code block tool available for Knowledge Base pages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 19:27:32 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2025-01-16T19:27:32Z</dc:date>
    <item>
      <title>Showing code blocks on knowledge base articles</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Showing-code-blocks-on-knowledge-base-articles/m-p/1094917#M41780</link>
      <description>&lt;P&gt;We have a knowledge base that features multiple articles with code blocks in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, these code blocks are displayed as texts in gray boxes and nothing else. Can we render them so that our customers can easily copy and paste them into their own code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that HubSpot's own Developer site has a way to do this:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/guides/crm/public-apps/fetching-data" target="_blank"&gt;https://developers.hubspot.com/docs/guides/crm/public-apps/fetching-data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-15 at 2.10.25 PM.png" style="width: 966px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136085i9362323D532FECD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-15 at 2.10.25 PM.png" alt="Screenshot 2025-01-15 at 2.10.25 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 20:11:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Showing-code-blocks-on-knowledge-base-articles/m-p/1094917#M41780</guid>
      <dc:creator>aabendan</dc:creator>
      <dc:date>2025-01-15T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Showing code blocks on knowledge base articles</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Showing-code-blocks-on-knowledge-base-articles/m-p/1095521#M41795</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/870516"&gt;@aabendan&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Great question. The answer is — yes, but partially. The Knowledge Base editor has a “code format” tool in the toolbar. But it's not at the same level of robustness as what you see in the dev docs. Meaning you can add code samples, but it lacks the formatting and the nice “copy + paste” option for folks to use with your samples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-01-16 at 12.16.49 2@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136174i6D32B3EC3BFC68A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-01-16 at 12.16.49 2@2x.png" alt="CleanShot 2025-01-16 at 12.16.49 2@2x.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My quick test&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-01-16 at 12.16.22@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136176i17B3BE6F72FA6CB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-01-16 at 12.16.22@2x.png" alt="CleanShot 2025-01-16 at 12.16.22@2x.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It took a little tweaking to get the line breaks and indentation to look decent, but it's doable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a moment, I think adding this to the &lt;STRONG&gt;&lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas" target="_blank" rel="noopener"&gt;Ideas&lt;/A&gt;&lt;/STRONG&gt; forum as a feature request would be helpful. I can definitely see the use case for having a more complete code block tool available for Knowledge Base pages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 19:27:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Showing-code-blocks-on-knowledge-base-articles/m-p/1095521#M41795</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-01-16T19:27:32Z</dc:date>
    </item>
  </channel>
</rss>

