
{"id":417,"date":"2008-06-04T10:22:04","date_gmt":"2008-06-04T09:22:04","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=417"},"modified":"2009-01-12T14:52:38","modified_gmt":"2009-01-12T13:52:38","slug":"actionscript-syntax-highlighting","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/","title":{"rendered":"ActionScript syntax highlighting"},"content":{"rendered":"<p>I wanted an easy way to present my ActionScript code on my blog.<\/p>\n<p>The easiest way is to use the <code>code<\/code> button in WordPress and CSS.<br \/>\nI&#8217;ve used this in combination with the pre tag<br \/>\nBut that&#8217;s doesn&#8217;t show nice code <a href=\"http:\/\/en.wikipedia.org\/wiki\/Syntax_highlighting\">highlighting<\/a> or line numbers&#8230;<\/p>\n<blockquote><p>Syntax highlighting is a feature of some text editors that displays text &#8220;especially source code&#8221; in different colors and fonts according to the category of terms.<\/p><\/blockquote>\n<p>I found out that there are two (probably more, but these two are the ones I tested) methods:<br \/>\ncode highlighting <strong>server sided<\/strong> (PHP) or <strong>client sided<\/strong> (javascript)<\/p>\n<h3>Server sided<\/h3>\n<p>The first WordPress highlight plugin is: <a href=\"http:\/\/blog.igeek.info\/still-fresh\/category\/wp-plugins\/igsyntax-hiliter\/\">iG:Syntax Hiliter<\/a> which is based upon <a href=\"http:\/\/qbnz.com\/highlighter\/\">GeSHi<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_1.jpg\" alt=\"\" title=\"AS3 syntaxhighlight\" width=\"500\" height=\"203\" class=\"alignnone size-full wp-image-418\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_1.jpg 519w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_1-300x121.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<blockquote><p>GeSHi &#8211; Generic Syntax Highlighter for PHP. Used to highlight almost any code for the web. Nearly 100 supported languages: PHP, HTML, C and more. Styles can be changed on the fly and CSS classes can be used to reduce the amount of XHTML compliant output.<\/p><\/blockquote>\n<p>Because the code highlighting is done on the server it&#8217;s really quick.<br \/>\nThe install was very easy and it&#8217;s very easy to use: <code>[as] place your code here [\/as]<\/code> (this is the code you use for ActionScript, read the manual included in the zip for other languages)<\/p>\n<p><strong>Pro:<\/strong> serversided so the code highlighting is done almost at once, a lot of programming languages that can be highlighted, easy to use in WordPress<br \/>\n<strong>Con:<\/strong> extra pressure on the server?, no copy to clipboard, not sure how up-to-date the plugin is (it works very good, but the last post about the plugin is from 2006, although the writer of the plugin replies to recent comments), I&#8217;m not very fond of the default CSS (but that can be modified). no button in the WordPress wysiwyg\/html editor <\/p>\n<h3>Client sided<\/h3>\n<p>The second plugin is: <strike><a href=\"http:\/\/erik.range-it.de\/wordpress\/plugins\/syntaxhighlighter\/\">syntaxhighlighter<\/a> written by Erik Range<\/strike>, this plugin is based upon <a href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/\">dp.SyntaxHighlighter<\/a> from Alex Gorbatchev.<\/p>\n<div class='highlight'>The plugin that I installed is removed, but there is a new one:<a href=\"http:\/\/wordpress.org\/extend\/plugins\/syntaxhighlighter\/\">http:\/\/wordpress.org\/extend\/plugins\/syntaxhighlighter\/<\/a>. This one is in the WordPress plugin directory, so it&#8217;s easy to install. I haven&#8217;t tested this one\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_2-300x75.jpg\" alt=\"syntaxhighlighter\" title=\"AS3 syntaxhighlight\" width=\"300\" height=\"75\" class=\"alignnone size-medium wp-image-419\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_2-300x75.jpg 300w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_2.jpg 527w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<blockquote><p>SyntaxHighlighter is here to help a developer\/coder to post code snippets online with ease and have it look pretty. It&#8217;s 100% Java Script based and it doesn&#8217;t care what you have on your server.<\/p><\/blockquote>\n<p>Because the code highlighting is done client sided, you will see some &#8216;flickering&#8217;, and change of appearances of the code block.<br \/>\nDefault the <strong>dp.SyntaxHighlighter<\/strong> doesn&#8217;t include ActionScript so I had to add that to it (<a href=\"http:\/\/www.digitalflipbook.com\/archives\/2007\/09\/as3_syntax_high.php\">digitalflipbook<\/a> wrote the javascript file so I only had to add it), change the WordPress plugin (it didn&#8217;t have ActionScript either ), update the WordPress Plugin to version 1.5.1 of dp.SyntaxHighlighter and fix the copy to clipboard function&#8230;.<\/p>\n<p><strong>Pro:<\/strong> no extra pressure on the server, copy to clipboard, it looks nicer, posible to add just one language instead of all,<br \/>\n<strong>Con:<\/strong> no default ActionScript, view code in popup, no button in the WordPress wysiwyg\/html editor <\/p>\n<h3>My choice<\/h3>\n<p><strike>Both have there strong points and there weaknesses, but I choose <a href=\"http:\/\/blog.igeek.info\/still-fresh\/category\/wp-plugins\/igsyntax-hiliter\/\">iG:Syntax Hiliter<\/a> because of it has included ActionScript default, and the processing of the code highlighting is done on the server side.<\/strike><\/p>\n<div class=\"update\"><strong>Update #1:<\/strong> For some reason iG:Syntax Hiliter changes the < code>-tag to a highlighted code block with the programming language <code>code<\/code> (never heard of that programming language \ud83d\ude09 ) but more strangely: to something unreadable&#8230; I always test all the plugins I want to use on a WordPress blog installed on a usb-webserver and the plugin works fine there, probably the plugins I have installed on my &#8216;live&#8217; blog don&#8217;t play nice with each other. I don&#8217;t have the time to find out who they are, so I used syntaxhighlighter.<br \/>\nThere is no reason you shouldn&#8217;t use iG:Syntax Hiliter: it works fine with WordPress 2.5, it just doesn&#8217;t on my blog. \ud83d\ude41<\/div>\n<p>[as]<br \/>\nfunction test ():void {<br \/>\n      trace (&#8216;test&#8217;);<br \/>\n}<br \/>\n[\/as]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I&#8217;ve used this in combination with the pre tag But that&#8217;s doesn&#8217;t show nice code highlighting or line numbers&#8230; Syntax highlighting is a feature of some text editors that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17],"tags":[68,158,156,157,155,153,406],"class_list":["post-417","post","type-post","status-publish","format-standard","hentry","category-flash","category-wordpress-plugin","tag-actionscript","tag-clipboard","tag-code-snippets","tag-programming-languages","tag-syntax-highlighter","tag-wordpress-25","tag-wordpress-plugin"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I&#039;ve used this in combination with the pre tag But that&#039;s doesn&#039;t show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Matthijs Kamstra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"[mck] | a polymath zapper\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ActionScript syntax highlighting | [mck]\" \/>\n\t\t<meta property=\"og:description\" content=\"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I&#039;ve used this in combination with the pre tag But that&#039;s doesn&#039;t show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-06-04T09:22:04+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2009-01-12T13:52:38+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ActionScript syntax highlighting | [mck]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I&#039;ve used this in combination with the pre tag But that&#039;s doesn&#039;t show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#article\",\"name\":\"ActionScript syntax highlighting | [mck]\",\"headline\":\"ActionScript syntax highlighting\",\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/wp-content\\\/uploads\\\/as3syntaxhighlight_1.jpg\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#articleImage\"},\"datePublished\":\"2008-06-04T10:22:04+01:00\",\"dateModified\":\"2009-01-12T14:52:38+01:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#webpage\"},\"articleSection\":\"Flash, WordPress Plugin, Actionscript, clipboard, code snippets, programming languages, syntax highlighter, WordPress 2.5, WordPress Plugin\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"name\":\"Flash\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"position\":2,\"name\":\"Flash\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#listItem\",\"name\":\"ActionScript syntax highlighting\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#listItem\",\"position\":3,\"name\":\"ActionScript syntax highlighting\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"name\":\"Flash\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Matthijs Kamstra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"Matthijs Kamstra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#webpage\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/\",\"name\":\"ActionScript syntax highlighting | [mck]\",\"description\":\"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I've used this in combination with the pre tag But that's doesn't show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/06\\\/04\\\/actionscript-syntax-highlighting\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2008-06-04T10:22:04+01:00\",\"dateModified\":\"2009-01-12T14:52:38+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"ActionScript syntax highlighting | [mck]","description":"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I've used this in combination with the pre tag But that's doesn't show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that","canonical_url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#article","name":"ActionScript syntax highlighting | [mck]","headline":"ActionScript syntax highlighting","author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/as3syntaxhighlight_1.jpg","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#articleImage"},"datePublished":"2008-06-04T10:22:04+01:00","dateModified":"2009-01-12T14:52:38+01:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#webpage"},"isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#webpage"},"articleSection":"Flash, WordPress Plugin, Actionscript, clipboard, code snippets, programming languages, syntax highlighter, WordPress 2.5, WordPress Plugin"},{"@type":"BreadcrumbList","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.matthijskamstra.nl\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","name":"Flash"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","position":2,"name":"Flash","item":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#listItem","name":"ActionScript syntax highlighting"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#listItem","position":3,"name":"ActionScript syntax highlighting","previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","name":"Flash"}}]},{"@type":"Organization","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization","name":"[mck]","description":"a polymath zapper","url":"https:\/\/www.matthijskamstra.nl\/blog\/"},{"@type":"Person","@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author","url":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/","name":"Matthijs Kamstra","image":{"@type":"ImageObject","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"Matthijs Kamstra"}},{"@type":"WebPage","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#webpage","url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/","name":"ActionScript syntax highlighting | [mck]","description":"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I've used this in combination with the pre tag But that's doesn't show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/#breadcrumblist"},"author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"datePublished":"2008-06-04T10:22:04+01:00","dateModified":"2009-01-12T14:52:38+01:00"},{"@type":"WebSite","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website","url":"https:\/\/www.matthijskamstra.nl\/blog\/","name":"[mck]","description":"a polymath zapper","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"[mck] | a polymath zapper","og:type":"article","og:title":"ActionScript syntax highlighting | [mck]","og:description":"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I've used this in combination with the pre tag But that's doesn't show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that","og:url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/","article:published_time":"2008-06-04T09:22:04+00:00","article:modified_time":"2009-01-12T13:52:38+00:00","twitter:card":"summary_large_image","twitter:title":"ActionScript syntax highlighting | [mck]","twitter:description":"I wanted an easy way to present my ActionScript code on my blog. The easiest way is to use the code button in WordPress and CSS. I've used this in combination with the pre tag But that's doesn't show nice code highlighting or line numbers... Syntax highlighting is a feature of some text editors that"},"aioseo_meta_data":{"post_id":"417","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-12-11 09:01:32","updated":"2025-06-04 08:59:29","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/\" title=\"Flash\">Flash<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tActionScript syntax highlighting\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.matthijskamstra.nl\/blog"},{"label":"Flash","link":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/"},{"label":"ActionScript syntax highlighting","link":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/06\/04\/actionscript-syntax-highlighting\/"}],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":3,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/417\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/417\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}