General area when it fits no where else

Moderator: Mmiscool

User avatar
By JMS
#66743 I created a style definition for esp8266Basic for Notepad++ I thought I'd post it just in case someone else might find it useful. You can save the code below as an XML file and import it under "Language>Define Your Language".

Code: Select all<NotepadPlus>
    <UserLang name="espBasic" ext="bas" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00&apos; 01 02 03 04</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">[]()</Keywords>
            <Keywords name="Operators2">= == + _ * / ^ &amp; % &gt; &lt;</Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">IF&#x000D;&#x000A;THEN&#x000D;&#x000A;DO&#x000D;&#x000A;LOOP&#x000D;&#x000A;FOR&#x000D;&#x000A;NEXT&#x000D;&#x000A;End If</Keywords>
            <Keywords name="Keywords2">CLS&#x000D;&#x000A;WPRINT&#x000D;&#x000A;WPRINT &#x000D;&#x000A;IMAGE&#x000D;&#x000A;BUTTON&#x000D;&#x000A;IMAGEBUTTON&#x000D;&#x000A;TEXTBOX&#x000D;&#x000A;PASSWORDBOX&#x000D;&#x000A;SLIDER&#x000D;&#x000A;DROPDOWN&#x000D;&#x000A;LISTBOX&#x000D;&#x000A;METER&#x000D;&#x000A;ONLOAD&#x000D;&#x000A;WAIT&#x000D;&#x000A;RETURNGUI&#x000D;&#x000A;HTMLID &#x000D;&#x000A;GUIOFF&#x000D;&#x000A;GUION&#x000D;&#x000A;CSSID&#x000D;&#x000A;CSSCLASS&#x000D;&#x000A;JAVASCRIPT&#x000D;&#x000A;CSS&#x000D;&#x000A;JSCALL&#x000D;&#x000A;wget&#x000D;&#x000A;ip&#x000D;&#x000A;Udpbegin&#x000D;&#x000A;Udpstop&#x000D;&#x000A;UdpbeginMultiCast&#x000D;&#x000A;Udpwrite&#x000D;&#x000A;UdpwriteMultiCast&#x000D;&#x000A;UdpReply&#x000D;&#x000A;UdpRead&#x000D;&#x000A;UdpRemote&#x000D;&#x000A;UdpBranch&#x000D;&#x000A;msgReturn</Keywords>
            <Keywords name="Keywords3">GOTO&#x000D;&#x000A;GOSUB&#x000D;&#x000A;RETURN</Keywords>
            <Keywords name="Keywords4">io&#x000D;&#x000A;TEMP&#x000D;&#x000A;delay&#x000D;&#x000A;GPIO1RESET&#x000D;&#x000A;interrupt&#x000D;&#x000A;timer</Keywords>
            <Keywords name="Keywords5">len&#x000D;&#x000A;instr&#x000D;&#x000A;instrrev&#x000D;&#x000A;mid&#x000D;&#x000A;left&#x000D;&#x000A;right&#x000D;&#x000A;trim&#x000D;&#x000A;str&#x000D;&#x000A;replace&#x000D;&#x000A;chr&#x000D;&#x000A;asc&#x000D;&#x000A;upper&#x000D;&#x000A;lower&#x000D;&#x000A;id&#x000D;&#x000A;version&#x000D;&#x000A;word&#x000D;&#x000A;json&#x000D;&#x000A;ReadOpenWeather</Keywords>
            <Keywords name="Keywords6">sqr&#x000D;&#x000A;sin&#x000D;&#x000A;cos&#x000D;&#x000A;tan&#x000D;&#x000A;log&#x000D;&#x000A;rnd&#x000D;&#x000A;millis&#x000D;&#x000A;int&#x000D;&#x000A;val&#x000D;&#x000A;oct&#x000D;&#x000A;hex&#x000D;&#x000A;hextoint&#x000D;&#x000A;ramfree&#x000D;&#x000A;flashfree&#x000D;&#x000A;pow &#x000D;&#x000A;exp &#x000D;&#x000A;asin &#x000D;&#x000A;acos &#x000D;&#x000A;atan &#x000D;&#x000A;atan2 &#x000D;&#x000A;abs &#x000D;&#x000A;fabs &#x000D;&#x000A;floor &#x000D;&#x000A;ceil &#x000D;&#x000A;round</Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00 00[ 01 02 02] 03 04 05 06( 07 08) 09 10 11 12&quot; 13 14&quot; 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="4043BF" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="1B6065" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="400080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
User avatar
By heckler
#66782 JMS,
:D :mrgreen:
Thank YOU so much for sharing!!

I have recently started using notepad+ to do my espbasic editing as it has line numbering that helps when the module gives an error referencing a line number.

I have thought about taking the time to create a template for this awesome espbasic.

your time spent is appreciated!!

regards
dwight
User avatar
By PhilTilson
#66816 By a remarkable coincidence, I have just made a similar style definition for the ConTEXT editor! So I'll upload that in case anyone is using that editor instead! :mrgreen:

Phil

ESPbasic.txt
You do not have the required permissions to view the files attached to this post.