Send Notepad-plus-plus mailing list submissions to notepad-plus-plus@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Notepad-plus-plus digest..." Today's Topics: 1. [notepad-plus - Help] User Defined Languade Issues (SourceForge.net) 2. [notepad-plus - Help] RE: User Defined Languade Issues (SourceForge.net) ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 Mar 2008 08:35:43 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] User Defined Languade Issues To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4860867 By: nobody Greetings, I just installed Notepad++ and love it - I hope to contribute in someway in the future. My problem is minor as I explore Notepad++'s possibilities. I created a "User Defined Language" for a CAD programming language we use here. Two things I can not get to work. 1) My comments do not highlight at all. 2) And I cannot get the 'folding' action based on the beginning/ending keywords I specified. Thanks, Steve Here's my 'userDefineLang.xml' from the %AppData% folder: <NotepadPlus> <UserLang name="Sigmac" ext="ff"> <Settings> <Global caseIgnored="no" /> <TreatAsSymbol comment="no" commentLine="no" /> <Prefix words1="no" words2="yes" words3="yes" words4="no" /> </Settings> <KeywordLists> <Keywords name="Delimiters">000.00</Keywords> <Keywords name="Folder+">if loop repeat</Keywords> <Keywords name="Folder-">endif end until</Keywords> <Keywords name="Comment"> 1 1 2 2 0/*</Keywords> <Keywords name="Operators">- ! % ( ) * , / : ; ^ + < = ></Keywords> <Keywords name="Words1">call else elseif end endif endloop exit global goto if level loop loopwhile repeat until while</Keywords> <Keywords name="Words2">$</Keywords> <Keywords name="Words3">#</Keywords> <Keywords name="Words4">.and. .or. .xor. .not. .band. bor. .bxor.</Keywords> </KeywordLists> <Styles> <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="408080" bgColor="FFFF80" fontName="" fontStyle="0" /> <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="408080" bgColor="FFFF80" fontName="" fontStyle="0" /> <WordsStyle name="KEYWORD1" styleID="5" fgColor="408080" bgColor="FFFF80" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD3" styleID="7" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="COMMENT" styleID="1" fgColor="C0C0C0" bgColor="FFFFFF" fontName="" fontStyle="0" /> <WordsStyle name="COMMENT LINE" styleID="2" fgColor="C0C0C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" /> <WordsStyle name="NUMBER" styleID="4" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="OPERATOR" styleID="10" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="DELIMINER1" styleID="14" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" /> <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> </Styles> </UserLang> </NotepadPlus> Sample code file: /* comment i=1 curpg_=i /* Current page on sub menus ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 2 Date: Mon, 24 Mar 2008 08:50:35 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: User Defined Languade Issues To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4860899 By: nobody I found the answer to #1 - remove the operators which are used in the comment syntax. Still need help on #2 Thanks, Steve ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ Notepad-plus-plus mailing list Notepad-plus-plus@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus End of Notepad-plus-plus Digest, Vol 22, Issue 95 *************************************************