{"id":237,"date":"2010-12-10T09:46:49","date_gmt":"2010-12-10T08:46:49","guid":{"rendered":"http:\/\/www.trappers.tk\/site\/?p=237"},"modified":"2010-12-11T16:39:35","modified_gmt":"2010-12-11T15:39:35","slug":"syntax-highlighting-addin-for-powerpoint-2010","status":"publish","type":"post","link":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/","title":{"rendered":"Syntax Highlighting addin for Powerpoint 2010"},"content":{"rendered":"<p>I&#8217;ve been working on a <a title=\"download the plugin\" href=\"http:\/\/trappers.tk\/share\/SyntaxColoringPlugin.7z\" target=\"_self\">syntax highlighting addin<\/a> for powerpoint for some time now. I finally feel that it is stable enough to push a first version onto the interwebs.<\/p>\n<p>You can use it on your slides to make code in there more readable and have a consistent styling. I know you can use &#8220;paste with keep formatting&#8221;, but I find it can be annoying.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-238\" title=\"Syntax Coloring Addin\" src=\"https:\/\/i0.wp.com\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png?resize=620%2C637\" alt=\"\" width=\"620\" height=\"637\" srcset=\"https:\/\/i0.wp.com\/jeroentrappers.be\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png?w=620&amp;ssl=1 620w, https:\/\/i0.wp.com\/jeroentrappers.be\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png?resize=291%2C300&amp;ssl=1 291w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>I used <a title=\"Alsing Syntaxbox\" href=\"http:\/\/code.google.com\/p\/alsing\/wiki\/SyntaxBox\" target=\"_self\">Alsing.Syntaxbox<\/a> and \u00c2\u00a0<a title=\"n RTF Tree\" href=\"http:\/\/nrtftree.sourceforge.net\/\" target=\"_blank\">NRtfTree<\/a> to help with the heavy lifting. I modified them a bit, just by removing code I didn&#8217;t need.<\/p>\n<p>What it does, essentially, is add a couple of buttons to a Ribbon. When you click a button, the addin detects which element was selected on a slide and applies syntax coloring of the selected language to it. To do this, a SyntaxDocument is created, it parses and calculates the styles for each word. Then I take the output of the SyntaxDocument and feed it into a RtfDocument. When that is done, i use the clipboard to do a rich paste into the element and apply some styles I like. It is written in C#. The syntax definition files are included as embedded resources.<\/p>\n<p>To install the addin: unzip (using <a title=\"7zip: the best!\" href=\"http:\/\/www.7-zip.org\/\">7zip<\/a>) <a title=\"the archive\" href=\"http:\/\/trappers.tk\/share\/SyntaxColoringPlugin.7z\">the archive<\/a>, then double click the SyntaxColoring.vsto file. This will install the plugin for you. You can remove it from your machine in &#8220;Add or remove programs&#8221;. In Powerpoint you can enable and disable the addin, or remove it if you don&#8217;t like it. Note that you might need to install the <a href=\"http:\/\/www.microsoft.com\/downloads\/en\/details.aspx?FamilyID=06c32242-2289-4471-93aa-ce96aa5cbc36\">Visual Studio 2010 Tools for Office<\/a>, before you can execute the vsto file.<\/p>\n<p>Please provide feedback if you like this or if you have suggestions for improvement. Take <a title=\"get the source\" href=\"http:\/\/trappers.tk\/share\/SyntaxColoring%20Source.7z\">the source code<\/a> and make it better. This is released under a GPL licence. You can take it, modify it, but you have to give me credit and publish the source of your modifications. There is no support or warranty of any kind. The components I used are open source, so respect the licence of those.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on a syntax highlighting addin for powerpoint for some time now. I finally feel that it is stable enough to push a first version onto the interwebs. You can use it on your slides to make code in there more readable and have a consistent styling. I know you can use &#8220;paste&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-tinternet"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Syntax Highlighting addin for Powerpoint 2010 - Appmire blog<\/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:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Syntax Highlighting addin for Powerpoint 2010 - Appmire blog\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been working on a syntax highlighting addin for powerpoint for some time now. I finally feel that it is stable enough to push a first version onto the interwebs. You can use it on your slides to make code in there more readable and have a consistent styling. I know you can use &#8220;paste...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/\" \/>\n<meta property=\"og:site_name\" content=\"Appmire blog\" \/>\n<meta property=\"article:published_time\" content=\"2010-12-10T08:46:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-12-11T15:39:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png\" \/>\n<meta name=\"author\" content=\"Jeroen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeroen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/\",\"url\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/\",\"name\":\"Syntax Highlighting addin for Powerpoint 2010 - Appmire blog\",\"isPartOf\":{\"@id\":\"https:\/\/jeroentrappers.be\/site\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png\",\"datePublished\":\"2010-12-10T08:46:49+00:00\",\"dateModified\":\"2010-12-11T15:39:35+00:00\",\"author\":{\"@id\":\"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/ea0bde8bb7c5133df1161487590ab952\"},\"breadcrumb\":{\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage\",\"url\":\"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png\",\"contentUrl\":\"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jeroentrappers.be\/site\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Syntax Highlighting addin for Powerpoint 2010\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/#website\",\"url\":\"https:\/\/jeroentrappers.be\/site\/\",\"name\":\"Appmire blog\",\"description\":\"www.appmire.be\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jeroentrappers.be\/site\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/ea0bde8bb7c5133df1161487590ab952\",\"name\":\"Jeroen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1d9628375678040b12e41cb45eb268a3?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1d9628375678040b12e41cb45eb268a3?s=96&d=identicon&r=g\",\"caption\":\"Jeroen\"},\"sameAs\":[\"http:\/\/www.trappers.tk\"],\"url\":\"https:\/\/jeroentrappers.be\/site\/author\/jeroen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Syntax Highlighting addin for Powerpoint 2010 - Appmire blog","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:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/","og_locale":"en_US","og_type":"article","og_title":"Syntax Highlighting addin for Powerpoint 2010 - Appmire blog","og_description":"I&#8217;ve been working on a syntax highlighting addin for powerpoint for some time now. I finally feel that it is stable enough to push a first version onto the interwebs. You can use it on your slides to make code in there more readable and have a consistent styling. I know you can use &#8220;paste...","og_url":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/","og_site_name":"Appmire blog","article_published_time":"2010-12-10T08:46:49+00:00","article_modified_time":"2010-12-11T15:39:35+00:00","og_image":[{"url":"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png","type":"","width":"","height":""}],"author":"Jeroen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jeroen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/","url":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/","name":"Syntax Highlighting addin for Powerpoint 2010 - Appmire blog","isPartOf":{"@id":"https:\/\/jeroentrappers.be\/site\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage"},"image":{"@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage"},"thumbnailUrl":"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png","datePublished":"2010-12-10T08:46:49+00:00","dateModified":"2010-12-11T15:39:35+00:00","author":{"@id":"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/ea0bde8bb7c5133df1161487590ab952"},"breadcrumb":{"@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#primaryimage","url":"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png","contentUrl":"http:\/\/www.trappers.tk\/site\/wp-content\/uploads\/2010\/12\/Syntax-Coloring-Addin.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jeroentrappers.be\/site\/2010\/12\/10\/syntax-highlighting-addin-for-powerpoint-2010\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jeroentrappers.be\/site\/"},{"@type":"ListItem","position":2,"name":"Syntax Highlighting addin for Powerpoint 2010"}]},{"@type":"WebSite","@id":"https:\/\/jeroentrappers.be\/site\/#website","url":"https:\/\/jeroentrappers.be\/site\/","name":"Appmire blog","description":"www.appmire.be","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jeroentrappers.be\/site\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/ea0bde8bb7c5133df1161487590ab952","name":"Jeroen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jeroentrappers.be\/site\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1d9628375678040b12e41cb45eb268a3?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1d9628375678040b12e41cb45eb268a3?s=96&d=identicon&r=g","caption":"Jeroen"},"sameAs":["http:\/\/www.trappers.tk"],"url":"https:\/\/jeroentrappers.be\/site\/author\/jeroen\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1Ezsm-3P","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":5,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/posts\/237\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeroentrappers.be\/site\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}