{"id":1007,"date":"2008-12-31T08:00:00","date_gmt":"2008-12-31T16:00:00","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/2008\/12\/31\/enablingdisabling-code-in-primalscript-2009\/"},"modified":"2008-12-09T11:19:07","modified_gmt":"2008-12-09T19:19:07","slug":"enablingdisabling-code-in-primalscript-2009","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/12\/31\/enablingdisabling-code-in-primalscript-2009\/","title":{"rendered":"Enabling\/Disabling Code in PrimalScript 2009"},"content":{"rendered":"<p><a href=\"http:\/\/www.primaltools.com\">PrimalScript 2009<\/a> includes a nice new feature that helps out in the script development process. You can now select a block of code, right click, and choose Disable Code.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/picture1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px\" title=\"Picture 1\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/picture1-thumb.png\" border=\"0\" alt=\"Picture 1\" width=\"235\" height=\"244\" \/><\/a><\/p>\n<p>This option will do three things to the selected block: it will comment out the selection, wrap the block in a \u201cDisabled Code\u201d region and collapse that region.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/image20.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/image-thumb15.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"121\" \/><\/a><\/p>\n<p>The code block can easily be re-enabled by right clicking on the collapsed block region tag and selecting Enable Code.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/picture11.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px\" title=\"Picture 1\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/picture1-thumb1.png\" border=\"0\" alt=\"Picture 1\" width=\"244\" height=\"209\" \/><\/a><\/p>\n<p>Enabling\/Disabling code in this way is much quicker that simply commenting out code. Enclosing the block in a region eliminates having to reselect the block to uncomment it. Also, folding the region makes the remaining code easier to read and debug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PrimalScript 2009 includes a nice new feature that helps out in the script development process. You can now select a block of code, right click, and choose Disable Code. This option will do three things to the selected block: it will comment out the selection, wrap the block in a \u201cDisabled Code\u201d region and collapse [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[283,176],"tags":[424,415],"class_list":["post-1007","post","type-post","status-publish","format-standard","hentry","category-howto","category-sneak-peeks-at-the-next-version-of-primalscript","tag-code-management","tag-primalscript-2009"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=1007"}],"version-history":[{"count":2,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1007\/revisions"}],"predecessor-version":[{"id":1008,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1007\/revisions\/1008"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}