Gyrobotic [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=14200 Notepad++ defined language xml <p>I decided to create a user defined language for pico8 in Notepad++.<br /> I used the same color scheme as pico-8.</p> <p>For those who don't know what this is, it changes the colors of text in Notepad++ depending on if the text is a command, a string, an operator (+ - = * /), or other keyword. Basically it makes Notepad++ look the same as typing inside of pico-8.</p> <p><strong>..Get Notepad++..</strong><br /> <a href="https://notepad-plus-plus.org/"><a href="https://notepad-plus-plus.org/">https://notepad-plus-plus.org/</a></a></p> <p><strong>..Download..</strong><br /> <a href="https://drive.google.com/file/d/0B628URhERSRoVDVrMjRmQndmeVk/view?usp=sharing">NP++ pico-8 user defined language xml</a><br /> (Or you can copy and paste the Hidden Text into a text editor and use the file extension .xml.)</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"><br /> &lt;NotepadPlus&gt;<br /> &lt;UserLang name=&quot;pico8&quot; ext=&quot;&quot; udlVersion=&quot;2.1&quot;&gt;<br /> &lt;Settings&gt;<br /> &lt;Global caseIgnored=&quot;yes&quot; allowFoldOfComments=&quot;no&quot; foldCompact=&quot;no&quot; forcePureLC=&quot;0&quot; decimalSeparator=&quot;0&quot; /&gt;<br /> &lt;Prefix Keywords1=&quot;no&quot; Keywords2=&quot;no&quot; Keywords3=&quot;no&quot; Keywords4=&quot;yes&quot; Keywords5=&quot;no&quot; Keywords6=&quot;no&quot; Keywords7=&quot;no&quot; Keywords8=&quot;no&quot; /&gt;<br /> &lt;/Settings&gt;<br /> &lt;KeywordLists&gt;<br /> &lt;Keywords name=&quot;Comments&quot;&gt;00-- 01 02 03 04&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, prefix1&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, prefix2&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, extras1&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, extras2&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, suffix1&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, suffix2&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Numbers, range&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Operators1&quot;&gt;<em> / + - = % ^ += -= </em>= /= == != ~= &gt; &lt; ,&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Operators2&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code1, open&quot;&gt;( { [&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code1, middle&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code1, close&quot;&gt;) } ]&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code2, open&quot;&gt;if function do for&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code2, middle&quot;&gt;else then elseif&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in code2, close&quot;&gt;end&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in comment, open&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in comment, middle&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Folders in comment, close&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords1&quot;&gt;in and or not local _update _draw _init return&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords2&quot;&gt;<strong>lua</strong> <strong>gfx</strong> <strong>gff</strong> <strong>map</strong> <strong>sfx</strong> <strong>music</strong> version&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords3&quot;&gt;false true nil&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords4&quot;&gt;sgn cls add del btn btnp spr sspr map music sfx all rnd flr camera line rect rectfill print circfill circ clip pget pset sget sset fget fset cursor color pal palt foreach pairs mget mset peek poke memcpy reload cstore memset max min mid cos sin atan2 sqrt abs rnd srand band bor bxor bnot shl shr menuitem cartdata dget dset sgn&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords5&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords6&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords7&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Keywords8&quot;&gt;&lt;/Keywords&gt;<br /> &lt;Keywords name=&quot;Delimiters&quot;&gt;00&quot; 01 02&quot; 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23&lt;/Keywords&gt;<br /> &lt;/KeywordLists&gt;<br /> &lt;Styles&gt;<br /> &lt;WordsStyle name=&quot;DEFAULT&quot; fgColor=&quot;C0C0C0&quot; bgColor=&quot;808080&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;COMMENTS&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;LINE COMMENTS&quot; fgColor=&quot;7272B8&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;3&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;NUMBERS&quot; fgColor=&quot;2894FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS1&quot; fgColor=&quot;FF77A8&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS2&quot; fgColor=&quot;FF8000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;3&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS3&quot; fgColor=&quot;0080FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;3&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS4&quot; fgColor=&quot;00E436&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS5&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS6&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS7&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;KEYWORDS8&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;OPERATORS&quot; fgColor=&quot;FFFFFF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;FOLDER IN CODE1&quot; fgColor=&quot;FFFFFF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;FOLDER IN CODE2&quot; fgColor=&quot;FF77A8&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;1&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;FOLDER IN COMMENT&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS1&quot; fgColor=&quot;2894FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Consolas&quot; fontStyle=&quot;2&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS2&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS3&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS4&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS5&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS6&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS7&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;WordsStyle name=&quot;DELIMITERS8&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; nesting=&quot;0&quot; /&gt;<br /> &lt;/Styles&gt;<br /> &lt;/UserLang&gt;<br /> &lt;/NotepadPlus&gt;<br /> </div></div></div></p> <p><strong>...Installation...</strong><br /> Import the .xml into Notepad++ under the toolbar:<br /> Language &gt;&gt; Define your language &gt;&gt; Import &gt;&gt; .xml file</p> <p>Let me know if I missed anything, and enjoy!</p> https://www.lexaloffle.com/bbs/?tid=3895 https://www.lexaloffle.com/bbs/?tid=3895 Thu, 21 Jul 2016 16:34:47 UTC