{"id":2556,"date":"2019-10-02T13:53:17","date_gmt":"2019-10-02T17:53:17","guid":{"rendered":"http:\/\/www.lios.ca\/?p=2556"},"modified":"2019-10-02T13:53:17","modified_gmt":"2019-10-02T17:53:17","slug":"how-to-embed-codepen-and-jsfiddle-in-madcap-flare","status":"publish","type":"post","link":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/","title":{"rendered":"How to embed CodePen and JSFiddle in MadCap Flare"},"content":{"rendered":"<p><em>So you\u2019re already comfortable working with code examples in your documentation. Maybe you\u2019ve even read our <a href=\"http:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\">article about inserting code snippets in Flare with Prism.js<\/a>. But now that you have a taste of the possibilities that can take your code from boring to beautiful, are you itching for new ways to step up your game as a software tech writer?<\/em><\/p>\n<p>Classic code snippets are a great solution for displaying a few lines of simple code, but are decidedly less useful when you need to show HTML, CSS, and JavaScript all together. Lines of code can add up quickly, and your user can easily find themselves scrolling into oblivion if you resort to using code snippet after code snippet.<\/p>\n<h4>There\u2019s an elegant way to showcase multiple code languages in Flare?<\/h4>\n<p>You bet! You can pop your code into CodePen or JSFiddle and neatly package it up into an embeddable interactive widget. If you haven\u2019t yet used either of these tools (or the others like them), they are online development playgrounds that allow you to view your HTML, CSS and JS code simultaneously along with the end result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png\" alt=\"\" width=\"887\" height=\"512\" class=\"aligncenter size-full wp-image-2558\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png 887w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en-168x97.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en-320x185.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en-768x443.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en-580x335.png 580w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/p>\n<p>Not only are these neat tools to use for your own coding online, but embedding your Pens and Fiddles directly into Flare can really amp up your documentation. Whether your users are new to coding or are programming masters, this dynamic style of presentation can really boost their understanding (and it looks pretty snazzy, too).<\/p>\n<h4>I\u2019m sold! But should I use CodePen, or JSFiddle?<\/h4>\n<p>When it comes down to nuts and bolts, both tools are very similar. If you don\u2019t yet have experience with either one, your best bet is to try both of them out and see which UI you prefer. One major difference is that CodePen runs your code automatically, whereas JSFiddle requires you to press a button. The rest mostly comes down to aesthetics and personal preference.<\/p>\n<p>If you feel adventurous, you can try your hand at other similar tools \u2014 CodePen and JSFiddle are some of the more popular options, but other choices exist.<\/p>\n<h4>Let\u2019s get started. How do I embed my code from CodePen?<\/h4>\n<p>Just follow these steps:<\/p>\n<ol>\n<li>Visit <a href=\"http:\/\/codepen.io\">codepen.io<\/a>.<\/li>\n<li>Log in to your existing CodePen account, or create a new one by clicking <strong>Sign Up<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"812\" height=\"62\" class=\"aligncenter size-full wp-image-2560\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en.png 812w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en-168x13.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en-320x24.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en-768x59.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/2en-580x44.png 580w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/li>\n<li>In the <strong>CREATE<\/strong> section of the sidebar, click <strong>Pen<\/strong> to create a new Pen.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/3en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"189\" height=\"146\" class=\"aligncenter size-full wp-image-2562\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/3en.png 189w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/3en-158x122.png 158w\" sizes=\"auto, (max-width: 189px) 100vw, 189px\" \/><\/li>\n<li>In the page that opens, enter your HTML, CSS and\/or JS code. Your code will run automatically, and you will be able to see the result in real time.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\" width=\"1085\" height=\"529\" class=\"aligncenter size-full wp-image-2564\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en.png 1085w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en-168x82.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en-320x156.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en-768x374.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en-1024x499.png 1024w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/4en-580x283.png 580w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/li>\n<li>Once you are done monkeying with your code, click <strong>Save<\/strong>.<\/li>\n<li>To get the code you need to embed your Pen, click <strong>Embed<\/strong> in the bottom right corner.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/5en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"629\" height=\"38\" class=\"aligncenter size-full wp-image-2600\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/5en.png 629w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/5en-168x10.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/5en-320x19.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/5en-580x35.png 580w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/li>\n<li>Edit the settings, if desired.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\" width=\"845\" height=\"344\" class=\"aligncenter size-full wp-image-2566\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en.png 845w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en-168x68.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en-320x130.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en-768x313.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/6en-580x236.png 580w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\n<p style=\"-moz-border-radius: 6px; -webkit-border-radius: 6px; background-color: #e6eecf; border: solid 1px #8ca83d; border-radius: 6px; overflow: hidden; padding: 15px 30px; text-indent: 0px; margin-top: 15px;\"><strong>Tip:<\/strong> If you have a Pro account with CodePen, you can check <strong>Make code editable<\/strong> to allow others to play around with your code and see the results. This not only increases the cool factor of your documentation, but also makes developers very happy!<\/p>\n<\/li>\n<li>In the <strong>Copy &amp; Paste Code<\/strong> section, make sure the <strong>HTML<\/strong> tab is selected.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"826\" height=\"115\" class=\"aligncenter size-full wp-image-2596\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en.png 826w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en-168x23.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en-320x45.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en-768x107.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/7en-580x81.png 580w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/li>\n<li>Copy the code.<\/li>\n<li>In MadCap Flare, open the topic where you want to embed your Pen and view it in the <strong>Text Editor<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/8en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"699\" height=\"170\" class=\"aligncenter size-full wp-image-2594\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/8en.png 699w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/8en-168x41.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/8en-320x78.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/8en-580x141.png 580w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/li>\n<li>Paste the code, and don\u2019t panic when Flare warns you that the line containing the <code>&lt;script&gt;<\/code> tag contains an unexpected token. This happens because the <code>async<\/code> attribute must take a value to be considered valid XHTML.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/unexpected-token.png\" alt=\"\" style=\"margin-top: 15px;\" width=\"709\" height=\"273\" class=\"aligncenter size-full wp-image-2626\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/unexpected-token.png 709w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/unexpected-token-168x65.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/unexpected-token-320x123.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/unexpected-token-580x223.png 580w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/li>\n<li>To fix the warning, replace <code>&lt;script async src=<\/code> with <code>&lt;script async=\"async\" src=<\/code>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/22en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"708\" height=\"275\" class=\"aligncenter size-full wp-image-2602\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/22en.png 708w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/22en-168x65.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/22en-320x124.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/22en-580x225.png 580w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/li>\n<li>Save your changes, publish your project, and admire your embedded Pen!<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\" width=\"774\" height=\"424\" class=\"aligncenter size-full wp-image-2590\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en.png 774w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en-168x92.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en-320x175.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en-768x421.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/10en-580x318.png 580w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/li>\n<\/ol>\n<h4>How do I embed my code from JSFiddle?<\/h4>\n<p>We\u2019ll walk you through it step by step:<\/p>\n<ol>\n<li>Visit <a href=\"http:\/\/jsfiddle.net\">jsfiddle.net<\/a>.\n<p style=\"-moz-border-radius: 6px; -webkit-border-radius: 6px; background-color: #e6eecf; border: solid 1px #8ca83d; border-radius: 6px; overflow: hidden; padding: 15px 30px; text-indent: 0px; margin-top: 15px;\"><strong>Tip:<\/strong> If you sign into an existing JSFiddle profile or create one, you will be able to save your finished Fiddle to your account and delete it in the future. That said, it won\u2019t be necessary for our purposes, as long as you are okay with making your Fiddle public.<\/p>\n<\/li>\n<li>In the page that opens, enter your HTML, CSS and\/or JS code.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"958\" height=\"429\" class=\"aligncenter size-full wp-image-2588\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en.png 958w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en-168x75.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en-320x143.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en-768x344.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/11en-580x260.png 580w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/li>\n<li>To try running your code, click <strong>Run<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/12en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"412\" height=\"59\" class=\"aligncenter size-full wp-image-2586\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/12en.png 412w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/12en-168x24.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/12en-320x46.png 320w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/li>\n<li>Once you have finished crafting your code, click <strong>Save<\/strong>. In the bubble that pops up, read the warnings and click <strong>Save fiddle<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/13en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\" width=\"413\" height=\"234\" class=\"aligncenter size-full wp-image-2584\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/13en.png 413w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/13en-168x95.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/13en-320x181.png 320w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/li>\n<li>Refresh the page.<\/li>\n<li>Click <strong>Embed<\/strong> to display the code for embedding your Fiddle.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/14en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"564\" height=\"59\" class=\"aligncenter size-full wp-image-2582\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/14en.png 564w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/14en-168x18.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/14en-320x33.png 320w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/li>\n<li>Edit the settings, if desired.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\"  width=\"775\" height=\"349\" class=\"aligncenter size-full wp-image-2580\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en.png 775w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en-168x76.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en-320x144.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en-768x346.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/15en-580x261.png 580w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/li>\n<li>In the <strong>Embed snippet<\/strong> section, click <strong>Prefer iframe?<\/strong> (this format cooperates better with MadCap Flare).<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/16en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\"  width=\"452\" height=\"33\" class=\"aligncenter size-full wp-image-2578\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/16en.png 452w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/16en-168x12.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/16en-320x23.png 320w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/li>\n<li>Copy the code.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/17en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"381\" height=\"114\" class=\"aligncenter size-full wp-image-2576\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/17en.png 381w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/17en-168x50.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/17en-320x96.png 320w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/li>\n<li>In MadCap Flare, open the topic where you want to embed your Fiddle and view it in the <strong>Text Editor<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/18en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"720\" height=\"172\" class=\"aligncenter size-full wp-image-2574\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/18en.png 720w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/18en-168x40.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/18en-320x76.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/18en-580x139.png 580w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/li>\n<li>Paste the code, and don\u2019t stress when Flare complains that the line containing the <code>&lt;iframe&gt;<\/code> tag contains an unexpected token.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/19en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"720\" height=\"197\" class=\"aligncenter size-full wp-image-2572\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/19en.png 720w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/19en-168x46.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/19en-320x88.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/19en-580x159.png 580w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/li>\n<li>Delete both the <code>allowfullscreen<\/code> and <code>allowpaymentrequest<\/code> attributes. To make a long story short, Flare doesn\u2019t play well with these attributes and they aren\u2019t necessary for your Fiddle to work. In addition to getting rid of the pesky warning, this will tidy up your code.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/20en.png\" style=\"margin-top: 15px;\" alt=\"\" width=\"720\" height=\"184\" class=\"aligncenter size-full wp-image-2570\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/20en.png 720w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/20en-168x43.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/20en-320x82.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/20en-580x148.png 580w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/li>\n<li>Save your changes, publish your project, and admire your embedded Fiddle!<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/21en.png\" style=\"margin-top: 15px; border: solid 1px lightgrey\" alt=\"\" width=\"724\" height=\"363\" class=\"aligncenter size-full wp-image-2568\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/21en.png 724w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/21en-168x84.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/21en-320x160.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/21en-580x291.png 580w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>So you\u2019re already comfortable working with code examples in your documentation. Maybe you\u2019ve even read our article about inserting code snippets in Flare with Prism.js. But now that you have a taste of the possibilities that can take your code from boring to beautiful, are you itching for new ways to step up your game [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[41,39],"tags":[],"class_list":["post-2556","post","type-post","status-publish","format-standard","hentry","category-madcap-flare","category-technical-writing-and-documentation"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to embed CodePen and JSFiddle in MadCap Flare - Lios<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to embed CodePen and JSFiddle in MadCap Flare - Lios\" \/>\n<meta property=\"og:description\" content=\"So you\u2019re already comfortable working with code examples in your documentation. Maybe you\u2019ve even read our article about inserting code snippets in Flare with Prism.js. But now that you have a taste of the possibilities that can take your code from boring to beautiful, are you itching for new ways to step up your game [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/\" \/>\n<meta property=\"og:site_name\" content=\"Lios\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-02T17:53:17+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png\" \/>\n<meta name=\"author\" content=\"Pascal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pascal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/\"},\"author\":{\"name\":\"Pascal\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#\\\/schema\\\/person\\\/185bd226f300ea376b71556a3861a2d2\"},\"headline\":\"How to embed CodePen and JSFiddle in MadCap Flare\",\"datePublished\":\"2019-10-02T17:53:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/\"},\"wordCount\":847,\"image\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/1en.png\",\"articleSection\":[\"MadCap Flare\",\"Technical writing and documentation\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/\",\"url\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/\",\"name\":\"How to embed CodePen and JSFiddle in MadCap Flare - Lios\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/1en.png\",\"datePublished\":\"2019-10-02T17:53:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#\\\/schema\\\/person\\\/185bd226f300ea376b71556a3861a2d2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/1en.png\",\"contentUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/1en.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"http:\\\/\\\/www.lios.ca\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to embed CodePen and JSFiddle in MadCap Flare\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#website\",\"url\":\"https:\\\/\\\/www.lios.ca\\\/\",\"name\":\"Lios\",\"description\":\"L&#039;information \u00e0 l&#039;oeuvre\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lios.ca\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#\\\/schema\\\/person\\\/185bd226f300ea376b71556a3861a2d2\",\"name\":\"Pascal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g\",\"caption\":\"Pascal\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to embed CodePen and JSFiddle in MadCap Flare - Lios","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/","og_locale":"en_US","og_type":"article","og_title":"How to embed CodePen and JSFiddle in MadCap Flare - Lios","og_description":"So you\u2019re already comfortable working with code examples in your documentation. Maybe you\u2019ve even read our article about inserting code snippets in Flare with Prism.js. But now that you have a taste of the possibilities that can take your code from boring to beautiful, are you itching for new ways to step up your game [&hellip;]","og_url":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/","og_site_name":"Lios","article_published_time":"2019-10-02T17:53:17+00:00","og_image":[{"url":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png","type":"","width":"","height":""}],"author":"Pascal","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pascal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#article","isPartOf":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/"},"author":{"name":"Pascal","@id":"https:\/\/www.lios.ca\/#\/schema\/person\/185bd226f300ea376b71556a3861a2d2"},"headline":"How to embed CodePen and JSFiddle in MadCap Flare","datePublished":"2019-10-02T17:53:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/"},"wordCount":847,"image":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#primaryimage"},"thumbnailUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png","articleSection":["MadCap Flare","Technical writing and documentation"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/","url":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/","name":"How to embed CodePen and JSFiddle in MadCap Flare - Lios","isPartOf":{"@id":"https:\/\/www.lios.ca\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#primaryimage"},"image":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#primaryimage"},"thumbnailUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png","datePublished":"2019-10-02T17:53:17+00:00","author":{"@id":"https:\/\/www.lios.ca\/#\/schema\/person\/185bd226f300ea376b71556a3861a2d2"},"breadcrumb":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#primaryimage","url":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png","contentUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/09\/1en.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-embed-codepen-and-jsfiddle-in-madcap-flare\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"http:\/\/www.lios.ca\/en\/"},{"@type":"ListItem","position":2,"name":"How to embed CodePen and JSFiddle in MadCap Flare"}]},{"@type":"WebSite","@id":"https:\/\/www.lios.ca\/#website","url":"https:\/\/www.lios.ca\/","name":"Lios","description":"L&#039;information \u00e0 l&#039;oeuvre","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lios.ca\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.lios.ca\/#\/schema\/person\/185bd226f300ea376b71556a3861a2d2","name":"Pascal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b61a5ec5d50484aabc9949da35a378871871e11bf276aa4d242d1d5c3ad948a?s=96&d=mm&r=g","caption":"Pascal"}}]}},"_links":{"self":[{"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts\/2556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/comments?post=2556"}],"version-history":[{"count":13,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts\/2556\/revisions"}],"predecessor-version":[{"id":2630,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts\/2556\/revisions\/2630"}],"wp:attachment":[{"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/media?parent=2556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/categories?post=2556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/tags?post=2556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}