{"id":859,"date":"2008-12-04T08:00:44","date_gmt":"2008-12-04T16:00:44","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=859"},"modified":"2008-11-25T08:09:17","modified_gmt":"2008-11-25T16:09:17","slug":"objects-at-rest","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/12\/04\/objects-at-rest\/","title":{"rendered":"Objects at Rest"},"content":{"rendered":"<p>Snippets in PrimalScript have always been easy to use. For instance, typing the name of a snippet and immediately pressing Ctrl-J, inserts the named snippet at the caret location. You can also drag a snippet from the snippet browser and drop it in the edit window at any location of your choosing.<\/p>\n<p>Creating a snippet was also fairly easy. Select the text you wanted to make into a snippet, right click the mouse, and select &#8220;Save as Snippet&#8221;. Then simply name the snippet and save it in the proper folder.<\/p>\n<p>PrimalScript 2009 has added a new enhancement to its\u00a0snippet\u00a0functionality. Snippet creation can now be done via a drag and drop process. Begin the snippet creation process just as previously, by selecting the text that is to be made into a snippet. Left click in the selected block and drag the selection to the snippet browser. Drop it into the appropriate language node and a &#8220;NewSnippet&#8221; entry is created. You should immediately rename the snippet at this point with a name that reflects its functionality.<\/p>\n<p>\u00a0<\/p>\n<div>\n<div id=\"attachment_861\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/11\/picture-2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-861\" class=\"size-medium wp-image-861 \" title=\"Selected text with NewSnippet\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/11\/picture-2-300x243.png\" alt=\"Selected text with NewSnippet\" width=\"300\" height=\"243\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2008\/11\/picture-2-300x243.png 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2008\/11\/picture-2.png 868w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-861\" class=\"wp-caption-text\">Selected text with NewSnippet<\/p><\/div>\n<\/div>\n<p>\u00a0<\/p>\n<p>That&#8217;s all there is to it! PrimalScript now has two-way drag and drop snippet functionality; creation and use. Give it a try on the the new PrimalScript 2009.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Snippets in PrimalScript have always been easy to use. For instance, typing the name of a snippet and immediately pressing Ctrl-J, inserts the named snippet at the caret location. You can also drag a snippet from the snippet browser and drop it in the edit window at any location of your choosing. Creating a snippet [&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":[37,408],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-howto","category-sneak-peeks-at-the-next-version-of-primalscript","tag-primalscript","tag-snippets"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/859","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=859"}],"version-history":[{"count":7,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":867,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions\/867"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}