{"id":393,"date":"2019-05-02T14:22:36","date_gmt":"2019-05-02T14:22:36","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=393"},"modified":"2021-03-24T17:46:14","modified_gmt":"2021-03-24T17:46:14","slug":"script-drawer","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/script-drawer\/","title":{"rendered":"Script Drawer"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-395\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/MonoScriptGUIInstructions.png\" alt=\"\" width=\"807\" height=\"386\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptGUIInstructions.png 807w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptGUIInstructions-300x143.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptGUIInstructions-768x367.png 768w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptGUIInstructions-150x72.png 150w\" sizes=\"(max-width: 807px) 100vw, 807px\" \/><\/p>\n<p>The <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/gui-instructions\/\">drawer<\/a> used in Power Inspector for your script assets improve upon the Editor in the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/default-inspector\/\">Default Inspector<\/a> in various ways.<\/p>\n<h1>Syntax Highlighting<\/h1>\n<p><strong>Readability<\/strong> is improved by the code being rendered with multi-colored <a href=\"https:\/\/en.wikipedia.org\/wiki\/Syntax_highlighting\" target=\"_blank\" rel=\"noopener noreferrer\">syntax highlighting<\/a>.<\/p>\n<h1>Line Numbering<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-398\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/MonoScriptLineNumbering.png\" alt=\"\" width=\"582\" height=\"195\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLineNumbering.png 582w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLineNumbering-300x101.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLineNumbering-150x50.png 150w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/p>\n<p>You can easily see on <strong>which lines<\/strong> the code shown is with the addition of line numbering.<\/p>\n<h1>Open At Line<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-397\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/MonoScriptOpenAtLine.png\" alt=\"\" width=\"501\" height=\"170\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptOpenAtLine.png 501w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptOpenAtLine-300x102.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptOpenAtLine-150x51.png 150w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/p>\n<p><strong>Double-click<\/strong> a <strong>line number<\/strong>, or right-click a line and select the <strong>context menu<\/strong> item \u201c<strong>Open At Line X<\/strong>\u201d (where X is the line number in question), to open the script file in your script editor and instantly <strong>jump to<\/strong> the line in question.<\/p>\n<h1>Compact Tab Character<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-417\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/CompactTab.png\" alt=\"\" width=\"787\" height=\"328\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/CompactTab.png 787w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/CompactTab-300x125.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/CompactTab-768x320.png 768w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/CompactTab-150x63.png 150w\" sizes=\"(max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>The <strong>width<\/strong> of the tab character has been <strong>reduced<\/strong>, so that you can <strong>see more<\/strong> of your code simultaneously.<\/p>\n<h1>Word Wrapping Disabled<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-409\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/WordWrappingRemoved.png\" alt=\"\" width=\"596\" height=\"496\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/WordWrappingRemoved.png 596w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/WordWrappingRemoved-300x250.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/WordWrappingRemoved-150x125.png 150w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/p>\n<p><strong>Readability<\/strong> is further improved thanks to word-wrapping being disabled.<\/p>\n<h1>Large Code File Support<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-407\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/MonoScriptLargeFileSupport.png\" alt=\"\" width=\"596\" height=\"350\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLargeFileSupport.png 596w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLargeFileSupport-300x176.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptLargeFileSupport-150x88.png 150w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>Even script files with <strong>thousands<\/strong> of lines can be <strong>shown in full<\/strong>.<\/p>\n<h1>In-Inspector Code Editing<\/h1>\n<p>While the focus of the script drawer is just enabling quick and effective previewing of your script assets, it does also enable making quick edits to your code right inside the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/inspector-view\/\">inspector view<\/a>. To edit your script asset, follow these steps:<\/p>\n<ol>\n<li>Select the line of code you want to edit.<\/li>\n<li><strong>Click<\/strong> the <strong>Edit Mode button<\/strong> in the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/toolbars\/\">header toolbar<\/a>, or press the <strong>F2<\/strong> key on your keyboard to <strong>start<\/strong> editing the line.<\/li>\n<li>Make your changes to the code line.<\/li>\n<li><strong>Click<\/strong> the <strong>Edit Mode button<\/strong> again, or press the <strong>Return<\/strong> key on your keyboard to <strong>stop<\/strong> editing the line.<\/li>\n<li>A new <strong>Changes button<\/strong> should now also be located on the header toolbar. <strong>Click<\/strong> this button, and from the context menu that opens, select <strong>&#8220;Save Changes&#8221;.<\/strong><\/li>\n<\/ol>\n<h1>Smart Line Count Display<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-396\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/MonoScriptSmartLineCount.png\" alt=\"\" width=\"505\" height=\"261\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptSmartLineCount.png 505w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptSmartLineCount-300x155.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/MonoScriptSmartLineCount-150x78.png 150w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/p>\n<p>If you <strong>mouseover<\/strong> the <strong>header<\/strong> of the script drawer, the <strong>line count<\/strong> for the current script asset is displayed, with empty lines and lines containing only comments ignored.<\/p>\n<h1>Optimized<\/h1>\n<p>The editor utilizes <strong>multi-threading<\/strong> when generating syntax highlighting for your code assets. This helps ensure that you will experience <strong>no slowdowns<\/strong> even when moving rapidly through many large script assets.<br \/>\nAlso to make sure that the inspector can <strong>operate smoothly<\/strong>, even when working with scripts containing thousands of lines of code, <strong>only<\/strong> the code lines that are actually <strong>visible<\/strong> at any given time are rendered.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The drawer used in Power Inspector for your script assets improve upon the Editor in the Default Inspector in various ways. Syntax Highlighting Readability is improved by the code being rendered with multi-colored syntax highlighting. Line Numbering You can easily see on which lines the code shown is with the addition of line numbering. Open ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/script-drawer\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/393"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":15,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/393\/revisions\/1825"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}