{"id":2469,"date":"2019-09-11T13:13:55","date_gmt":"2019-09-11T17:13:55","guid":{"rendered":"http:\/\/www.lios.ca\/?p=2469"},"modified":"2019-09-11T13:13:55","modified_gmt":"2019-09-11T17:13:55","slug":"how-to-insert-pretty-code-examples-in-madcap-flare","status":"publish","type":"post","link":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/","title":{"rendered":"How to insert (pretty) code examples in MadCap Flare"},"content":{"rendered":"<p><em>When it comes to your HTML output, it can be tricky to insert code that is highly readable, visually appealing, and up to software developers\u2019 expectations. Fortunately, we have an easy way to make that happen!<\/em><\/p>\n<p>They say that form follows function, but we all want our documentation to be eye-catching. If you work in the software industry, you probably know that code examples can sometimes look a little lackluster in MadCap Flare without any syntax highlighting. More importantly, it can be tough to format it the way software developers want it to look. What is a technical writer to do?<\/p>\n<h4>I know, I\u2019ll just take pictures of my code!<\/h4>\n<p>Snapping screenshots of your perfectly formatted code may be a quick and easy way to get your point across. But what happens when users want to copy your examples and edit them for their own projects? The dazzling beauty of your formatting will quickly fade as the frustrated reader retypes all your code line by line. What\u2019s more, none of the code in your screenshots will turn up in searches, which may mean that fewer people see your work at all.<\/p>\n<h4>I pasted my code as text instead, but it\u2019s a complete jumble.<\/h4>\n<p>Indeed. You never realize just how valuable line breaks, indents and syntax highlighting are until they\u2019re gone. Deciphering this kind of code makes for a good headache:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2497\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png\" alt=\"\" width=\"412\" height=\"62\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png 412w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en-168x25.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en-320x48.png 320w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p>But don\u2019t panic! You can always paste your code into\u00a0<code>&lt;pre&gt;&lt;code class=\"language-xxx\"&gt;&lt;\/code&gt;&lt;\/pre&gt;<\/code>\u00a0tags, which will at least preserve your indents and display your code in a simple monospace font:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2493\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/2en.png\" alt=\"\" width=\"459\" height=\"235\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/2en.png 459w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/2en-168x86.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/2en-320x164.png 320w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/p>\n<p>The bad news is that you will either have to settle for plain old black font, or create custom styles for each font colour and apply them by hand. We don\u2019t know about you, but not many people have that kind of time.<\/p>\n<h4>Please tell me there\u2019s a better solution for this.<\/h4>\n<p>Lucky for you, there is. Thanks to the folks over at Prism (and the makers of other syntax highlighting tools), you can download a lightweight syntax highlighting script that will make your dreams of colourful code come true:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2495\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/3en.png\" alt=\"\" width=\"426\" height=\"239\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/3en.png 426w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/3en-168x94.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/3en-320x180.png 320w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/p>\n<p>Keen to give it a try? Just follow the steps below.<\/p>\n<h5>Download Prism<\/h5>\n<p>The first order of business is to download Prism from the website:<\/p>\n<ol>\n<li>Visit <a href=\"http:\/\/prismjs.com\">prismjs.com<\/a>.<\/li>\n<li>Click the big <strong>DOWNLOAD<\/strong> button on the homepage.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2489\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/4en.png\" alt=\"\" width=\"600\" height=\"101\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/4en.png 600w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/4en-168x28.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/4en-320x54.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/4en-580x98.png 580w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n<li>Edit the download settings if you want to customize the colour theme or supported languages.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2491\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en.png\" alt=\"\" width=\"975\" height=\"407\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en.png 975w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en-168x70.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en-320x134.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en-768x321.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/5en-580x242.png 580w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/li>\n<li>At the bottom of the page, click <strong>DOWNLOAD JS<\/strong> and <strong>DOWNLOAD CSS<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2487\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/6en.png\" alt=\"\" width=\"400\" height=\"36\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/6en.png 400w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/6en-168x15.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/6en-320x29.png 320w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<\/ol>\n<h5>Set up Prism in Flare<\/h5>\n<p>Once you have the files you need, it\u2019s time to set up your project to work with Prism:<\/p>\n<ol>\n<li>In Flare, in the <strong>Content Explorer<\/strong>, right-click on the <strong>Resources<\/strong> folder and select <strong>New &gt; Folder<\/strong>. Name this new folder <em>Scripts<\/em>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2485\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/7en.png\" alt=\"\" width=\"473\" height=\"318\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/7en.png 473w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/7en-168x113.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/7en-320x215.png 320w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/li>\n<li>Save the .js file that you downloaded in the <strong>Scripts<\/strong> folder that you just created.<\/li>\n<li>Save the .css file that you downloaded in your <strong>Stylesheets<\/strong> folder.<\/li>\n<li>To ensure that your code will be formatted with Prism\u2019s syntax highlighting, you need to import the Prism CSS in your stylesheet. To do so, open Flare, right-click on the stylesheet associated with your target, and open it in the <strong>Internal Text Editor<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2483\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/8en.png\" alt=\"\" width=\"531\" height=\"244\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/8en.png 531w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/8en-168x77.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/8en-320x147.png 320w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/li>\n<li>Enter <code>@import url('prism.css');<\/code> at the top of your stylesheet. This ensures that the code will be formatted with Prism\u2019s syntax highlighting.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2481\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/9en.png\" alt=\"\" width=\"323\" height=\"143\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/9en.png 323w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/9en-168x74.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/9en-320x142.png 320w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/li>\n<li>To ensure that the script will run on every page, you will need to call the Prism script in your master page. To do so, right-click on your master page and open it in the <strong>Internal Text Editor<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2479\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/10en.png\" alt=\"\" width=\"589\" height=\"172\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/10en.png 589w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/10en-168x49.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/10en-320x93.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/10en-580x169.png 580w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/li>\n<li>Enter\u00a0<code>&lt;script type=\"text\/javascript\" src=\"..\/Scripts\/prism.js\"&gt;<\/code> in the <code>&lt;head&gt;<\/code> section.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2477\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/11en.png\" alt=\"\" width=\"481\" height=\"115\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/11en.png 481w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/11en-168x40.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/11en-320x77.png 320w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><\/li>\n<\/ol>\n<h5>Insert code in your topics<\/h5>\n<ol>\n<li>Open the topic where you want to add a code snippet.<\/li>\n<li>Using the <strong>XML Editor<\/strong>, paste your code into the topic.<\/li>\n<li>Click the <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2512\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/icon.png\" alt=\"\" width=\"19\" height=\"20\" \/> icon that appears below your pasted code and select <strong>Paste Inline Text<\/strong>. This ensures that any special characters in your code (e.g. <code>&lt;<\/code>, <code>&gt;<\/code>, <code>&amp;<\/code>) are converted to HTML entities (e.g. <code>&amp;lt;<\/code>, <code>&amp;gt;<\/code>, <code>&amp;amp;<\/code>).\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 your code is in a language that does not use any special characters, such as JavaScript, you can paste your code directly into the <strong>Text Editor<\/strong> instead.<\/p>\n<\/li>\n<li>Switch to the <strong>Text Editor<\/strong> and wrap your code in tags (replace \u201cxxx\u201d with the language of your code, such as \u201chtml\u201d or \u201ccss\u201d).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2475\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/12en.png\" alt=\"\" width=\"362\" height=\"170\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/12en.png 362w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/12en-168x79.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/12en-320x150.png 320w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/li>\n<\/ol>\n<p>Last but not least, publish your project and admire your code snippet! You can now add code to your project wherever and whenever it is needed, without losing any of the formatting that you see in your code editor.<\/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;\"><strong>Tip:\u00a0<\/strong>To make the process even faster, you can create snippet templates in Flare for each code language. Here\u2019s one that we use:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2473\" style=\"padding-top: 15px;\" src=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en.png\" alt=\"\" width=\"1004\" height=\"159\" srcset=\"https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en.png 1004w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en-168x27.png 168w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en-320x51.png 320w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en-768x122.png 768w, https:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/13en-580x92.png 580w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When it comes to your HTML output, it can be tricky to insert code that is highly readable, visually appealing, and up to software developers\u2019 expectations. Fortunately, we have an easy way to make that happen! They say that form follows function, but we all want our documentation to be eye-catching. If you work in [&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-2469","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 insert (pretty) code examples 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-insert-pretty-code-examples-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 insert (pretty) code examples in MadCap Flare - Lios\" \/>\n<meta property=\"og:description\" content=\"When it comes to your HTML output, it can be tricky to insert code that is highly readable, visually appealing, and up to software developers\u2019 expectations. Fortunately, we have an easy way to make that happen! They say that form follows function, but we all want our documentation to be eye-catching. If you work in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/\" \/>\n<meta property=\"og:site_name\" content=\"Lios\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-11T17:13:55+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/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-insert-pretty-code-examples-in-madcap-flare\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/\"},\"author\":{\"name\":\"Pascal\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#\\\/schema\\\/person\\\/185bd226f300ea376b71556a3861a2d2\"},\"headline\":\"How to insert (pretty) code examples in MadCap Flare\",\"datePublished\":\"2019-09-11T17:13:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/\"},\"wordCount\":777,\"image\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1en.png\",\"articleSection\":[\"MadCap Flare\",\"Technical writing and documentation\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/\",\"url\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/\",\"name\":\"How to insert (pretty) code examples in MadCap Flare - Lios\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1en.png\",\"datePublished\":\"2019-09-11T17:13:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/#\\\/schema\\\/person\\\/185bd226f300ea376b71556a3861a2d2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1en.png\",\"contentUrl\":\"http:\\\/\\\/www.lios.ca\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/1en.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lios.ca\\\/en\\\/blogue\\\/how-to-insert-pretty-code-examples-in-madcap-flare\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"http:\\\/\\\/www.lios.ca\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to insert (pretty) code examples 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 insert (pretty) code examples 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-insert-pretty-code-examples-in-madcap-flare\/","og_locale":"en_US","og_type":"article","og_title":"How to insert (pretty) code examples in MadCap Flare - Lios","og_description":"When it comes to your HTML output, it can be tricky to insert code that is highly readable, visually appealing, and up to software developers\u2019 expectations. Fortunately, we have an easy way to make that happen! They say that form follows function, but we all want our documentation to be eye-catching. If you work in [&hellip;]","og_url":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/","og_site_name":"Lios","article_published_time":"2019-09-11T17:13:55+00:00","og_image":[{"url":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/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-insert-pretty-code-examples-in-madcap-flare\/#article","isPartOf":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/"},"author":{"name":"Pascal","@id":"https:\/\/www.lios.ca\/#\/schema\/person\/185bd226f300ea376b71556a3861a2d2"},"headline":"How to insert (pretty) code examples in MadCap Flare","datePublished":"2019-09-11T17:13:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/"},"wordCount":777,"image":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#primaryimage"},"thumbnailUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png","articleSection":["MadCap Flare","Technical writing and documentation"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/","url":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/","name":"How to insert (pretty) code examples in MadCap Flare - Lios","isPartOf":{"@id":"https:\/\/www.lios.ca\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#primaryimage"},"image":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#primaryimage"},"thumbnailUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png","datePublished":"2019-09-11T17:13:55+00:00","author":{"@id":"https:\/\/www.lios.ca\/#\/schema\/person\/185bd226f300ea376b71556a3861a2d2"},"breadcrumb":{"@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#primaryimage","url":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png","contentUrl":"http:\/\/www.lios.ca\/wp-content\/uploads\/2019\/08\/1en.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lios.ca\/en\/blogue\/how-to-insert-pretty-code-examples-in-madcap-flare\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"http:\/\/www.lios.ca\/en\/"},{"@type":"ListItem","position":2,"name":"How to insert (pretty) code examples 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\/2469","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=2469"}],"version-history":[{"count":27,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts\/2469\/revisions"}],"predecessor-version":[{"id":2552,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/posts\/2469\/revisions\/2552"}],"wp:attachment":[{"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/media?parent=2469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/categories?post=2469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lios.ca\/en\/wp-json\/wp\/v2\/tags?post=2469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}