{"id":4276,"date":"2024-04-15T03:53:13","date_gmt":"2024-04-14T19:53:13","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4276"},"modified":"2024-04-15T03:53:13","modified_gmt":"2024-04-14T19:53:13","slug":"script-section","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/script-section\/","title":{"rendered":"Script Section"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Script sections empower you to exhibit formatted script snippets in a broad array of programming languages. <\/p>\n<blockquote><p><strong>Essential: <\/strong>Script sections do not execute any scripts. If you wish to include personalized script on your platform, review our tutorial on the insert element. <\/p><\/blockquote>\n<p>Throughout this tutorial, you\u2019ll discover: <\/p>\n<ol start=\"1\" role=\"list\">\n<li>Guidelines on incorporating and adjusting a script section<\/li>\n<li>Strategies for designing a script section<\/li>\n<\/ol>\n<h2>Demonstration of adding and editing a script section <\/h2>\n<p>To introduce a script section component to your platform: <\/p>\n<ol start=\"1\" role=\"list\">\n<li>Replicate the script you intend to exhibit in the script section<\/lia>\n<li>Unveil <strong>Insert panel<\/strong> &gt; <strong>Complex<\/strong>\u200d<\/li>\n<li>Move a <strong>script section<\/strong> to the display area, a rich text component, or the rich text field within the CMS<\/li>\n<li>Insert your script into the script editor <\/li>\n<li>Tap <strong>Save &amp; exit<\/strong><\/li>\n<\/ol>\n<h6><strong>Notification: <\/strong>The script section component backs most programming languages; however, it does not envelop every language. A comprehensive list of supported languages is accessible in the <strong>Element settings panel<\/strong> &gt; <strong>Script section settings<\/strong> &gt; <strong>Language<\/strong>.<\/h6>\n<p>To modify the script exhibited within the script section, pick the script section on the display area, hit the settings \u201c<strong>gear<\/strong>\u201d icon, and choose <strong>Access script editor<\/strong>. You can also initialize the script editor from <strong>Element settings panel<\/strong> &gt; <strong>Script section settings<\/strong>.<\/p>\n<h6><strong>Necessity to understand: <\/strong>Scripts in a script section component must not surpass 10,000 characters. If the script you wish to exhibit is lengthier, you can compress your script employing an external tool or distribute it into multiple script section components.<\/h6>\n<h3>Script section settings<\/h3>\n<p>After affixing a script section to the display area, you\u2019ll uncover the ensuing settings in <strong>Element settings panel<\/strong> &gt; <strong>Script section settings<\/strong>: <\/p>\n<ul role=\"list\">\n<li><strong>Language<\/strong> \u2014 dictates the highlighting syntax implemented to the script in the element. The script section automatically discerns the programming language of the script you paste in, but you can regulate the language as necessary<\/li>\n<li><strong>Theme<\/strong> \u2014 sustains <strong>light<\/strong> and <strong>dark<\/strong> theme<\/li>\n<li><strong>Show line numbers<\/strong> \u2014 decides whether line numbers are exhibited adjacent to each line of script<\/li>\n<\/ul>\n<h2>Techniques for designing a script section <\/h2>\n<p>As a default, the script section occupies the complete width of its parent element. You can customize the script section in the <strong>Design panel <\/strong>similarly to other elements (e.g., set its dimensions and spacing attributes, etc.), but you cannot modify its typography or backdrop attributes.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Display formatted code snippets on your site.","protected":false},"author":2,"featured_media":5175,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[290],"tags":[],"class_list":{"0":"post-4276","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-elements","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=4276"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5232"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}