
{"id":989,"date":"2009-05-27T23:00:05","date_gmt":"2009-05-27T22:00:05","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=989"},"modified":"2009-05-28T22:14:49","modified_gmt":"2009-05-28T21:14:49","slug":"notepad-opens-actionscript-file-with-haskell-syntax-highlighting","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2009\/05\/27\/notepad-opens-actionscript-file-with-haskell-syntax-highlighting\/","title":{"rendered":"Notepad++ opens ActionScript file with Haskell syntax highlighting"},"content":{"rendered":"<p>Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is <a href=\"http:\/\/notepad-plus.sourceforge.net\/uk\/site.htm\">Notepad++<\/a>.<br \/>\nNotepad++ has ActionScript syntax highlighting but it seems that it doesn&#8217;t detect it.<br \/>\nWhen I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files and you need to set them one by one to ActionScript.<\/p>\n<p>Google (who else) provided the answer: <a href=\"http:\/\/cboard.cprogramming.com\/general-discussions\/106510-notepadplusplus-opening-actionscript-files.html\">here<\/a>.<\/p>\n<p>This is what you do:<br \/>\nfind and open the <code>langs.xml<\/code> file<br \/>\nyou can find it in the install folder of Notepad++, in my case<br \/>\n<code>C:\\Program Files\\Notepad++<\/code><\/p>\n<p>find the haskell language<br \/>\n<code>< Language name=\"haskell\" ext=\"hs lhs as las\" commentLine=\"--\" ><\/code><\/p>\n<p>and remove &#8220;<code>as<\/code>&#8221; from the ext and save the file.<\/p>\n<p>Next time you open an AS file with notepad++ it will be highlighted in the correct syntax<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is Notepad++. Notepad++ has ActionScript syntax highlighting but it seems that it doesn&#8217;t detect it. When I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files [&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,2],"tags":[68,254,398,159,271,236,36],"class_list":["post-989","post","type-post","status-publish","format-standard","hentry","category-flash","category-misc","tag-actionscript","tag-editor","tag-flash","tag-flashdevelop","tag-notepad","tag-syntax","tag-xml"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/989","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=989"}],"version-history":[{"count":5,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/989\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/989\/revisions\/1007"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}