notepad++ comment line bug :(

General FreeBASIC programming questions.
ron77
Posts: 81
Joined: Feb 21, 2019 19:24
Location: Israel
Contact:

notepad++ comment line bug :(

Postby ron77 » Jun 21, 2020 15:25

hello all...

so i've decided to make my default freebasic ide/text editor to be notepade++... yet there is a bug trying to comment / uncomment lines in it in FB...

it seems that the shortcut doesn't work at all and so doesn't work the command itself from the menu :O !

i've been searching and searching for a fix ... i'm using notepad++ version 7.8.7 64 bit...

this is as close to find a temporary fix by making a macro command with shortcut...
https://community.notepad-plus-plus.org/topic/13207/comments-don-t-work/19

there is no solution for blocks of codes lines :((

this sucks!

anyone uses notepad++ as FB editor? and know a solution how to make the comment work???

ron77
ron77
Posts: 81
Joined: Feb 21, 2019 19:24
Location: Israel
Contact:

Re: notepad++ comment line bug :(

Postby ron77 » Jun 21, 2020 15:41

okay :))

i'm happy to say i found a solution to the comment/uncomment bug here it is - this solution is for vb but works well for FB...

https://www.mysysadmintips.com/windows/clients/436-change-comment-character-in-notepad

ron77
Muttonhead
Posts: 130
Joined: May 28, 2009 20:07

Re: notepad++ comment line bug :(

Postby Muttonhead » Jun 21, 2020 18:03

I built the highlighter myself as a "user defined language".
the block comment via menu works.
It doesn't always work perfectly, but I'm happy with it:

Save this as "userDefineLang.xml" in the "userDefineLangs" folder and restart notepad:

Code: Select all

<NotepadPlus>
    <UserLang name="FreeBasic" ext="bas bi" 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/&apos; 04&apos;/</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2">&amp;</Keywords>
            <Keywords name="Numbers, extras1">a b c d e f h A B C D E F H</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"></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">__DATE__ __DATE_ISO__ __FB_64BIT__ __FB_ARGC__ __FB_ARGV__ __FB_ARM__ __FB_ASM__ __FB_BACKEND__ __FB_BIGENDIAN__ __FB_BUILD_DATE__ __FB_CYGWIN__ __FB_DARWIN__ __FB_DEBUG__ __FB_DOS__ __FB_ERR__ __FB_FPMODE__ __FB_FPU__ __FB_FREEBSD__ __FB_GCC__ __FB_LANG__ __FB_LINUX__ __FB_MAIN__ __FB_MIN_VERSION__ __FB_MT__ __FB_NETBSD__ __FB_OPENBSD__ __FB_OPTION_BYVAL__ __FB_OPTION_DYNAMIC__ __FB_OPTION_ESCAPE__ __FB_OPTION_EXPLICIT__ __FB_OPTION_GOSUB__ __FB_OPTION_PRIVATE__ __FB_OUT_DLL__ __FB_OUT_EXE__ __FB_OUT_LIB__ __FB_OUT_OBJ__ __FB_PCOS__ __FB_SIGNATURE__ __FB_SSE__ __FB_UNIX__ __FB_VECTORIZE__ __FB_VER_MAJOR__ __FB_VER_MINOR__ __FB_VER_PATCH__ __FB_VERSION__ __FB_WIN32__ __FB_XBOX__ __FILE__ __FILE_NQ__ __FUNCTION__ __FUNCTION_NQ__ __LINE__ __PATH__ __TIME__</Keywords>
            <Keywords name="Keywords2">#ASSERT #DEFINE #ELSE #ELSEIF #ENDIF #ENDMACRO #ERROR #IF #IFDEF #IFNDEF #INCLIB #INCLUDE #LANG #LIBPATH #LINE #MACRO #PRAGMA #PRINT #UNDEF</Keywords>
            <Keywords name="Keywords3">$DYNAMIC $INCLUDE $LANG $STATIC</Keywords>
            <Keywords name="Keywords4">ABS ABSTRACT ACCESS ACOS ADD ALIAS ALLOCATE ALPHA AND ANDALSO ANY APPEND AS ASC ASIN ASM ASSERT ASSERTWARN ATAN2 ATN BASE BEEP BIN BINARY BIT BITRESET BITSET BLOAD BOOLEAN BSAVE BYREF BYTE BYVAL CALL CALLOCATE CASE CASE CAST CBOOL CBYTE CDBL CDECL CHAIN CHDIR CHR CINT CIRCLE CLASS CLEAR CLNG CLNGINT CLOSE CLS COLOR COM COMMAND COMMON CONDBROADCAST CONDCREATE CONDDESTROY CONDSIGNAL CONDWAIT CONS CONST CONSTRUCTOR CONTINUE COS CPTR CSHORT CSIGN CSNG CSRLIN CUBYTE CUINT CULNG CULNGINT CUNSG CURDIR CUSHORT CUSTOM CVD CVI CVL CVLONGINT CVS CVSHORT DATA DATE DATEADD DATEDIFF DATEPART DATESERIAL DATEVALUE DAY DEALLOCATE DECLARE DEFBYTE DEFDBL DEFINED DEFINT DEFLNG DEFLONGINT DEFSHORT DEFSNG DEFSTR DEFUBYTE DEFUINT DEFULONGINT DEFUSHORT DELETE DESTRUCTOR DIM DIR DO DOUBLE DRAW DYLIBFREE DYLIBLOAD DYLIBSYMBOL DYNAMIC ELSE ELSEIF ENCODING END ENUM ENVIRON EOF EQV ERASE ERFN ERL ERMN ERR ERROR ESCAPE EVENT EXEC EXEPATH EXIT EXP EXPLICIT EXPORT EXTENDS EXTERN FALSE FIELD FILEATTR FILECOPY FILEDATETIME FILEEXISTS FILELEN FIX FLIP FOR FORMAT FRAC FRE FREEFILE FUNCTION GET GETJOYSTICK GETKEY GETMOUSE GOSUB GOTO HEX HIBYTE HIWORD HOUR IF IIF IMAGECONVERTROW IMAGECREATE IMAGEDESTROY IMAGEINFO IMP IMPLEMENTS IMPORT INKEY INP INPUT INPUT# INPUT$ INSTR INSTRREV INT INTEGER INTEGER&lt;32&gt; IS ISDATE ISREDIRECTED KILL LBOUND LCASE LEFT LEN LET LIB LINE LOBYTE LOC LOCAL LOCATE LOCK LOF LOG LONG LONGINT LOOP LOWORD LPOS LPRINT LPT LSET LTRIM MID MID MINUTE MKD MKDIR MKI MKL MKLONGINT MKS MKSHORT MOD MONTH MONTHNAME MULTIKEY MUTEXCREATE MUTEXDESTROY MUTEXLOCK MUTEXUNLOCK NAKED NAME NAMESPACE NEW NEXT NOGOSUB NOKEYWORD NOT NOW OBJECT OCT OFFSETOF ON ONCE OPEN OPERATOR OPTION OR ORELSE OUT OUTPUT OVERLOAD OVERRIDE PAINT PALETTE PASCAL PCOPY PEEK PIPE PMAP POINT POINTCOORD POINTER POKE POS PRESERVE PRESET PRINT PRINT# PRIVATE PRIVATE: PROCPTR PROPERTY PROTECTED: PSET PSET PTR PUBLIC PUBLIC: PUT RANDOM RANDOMIZE READ REALLOCATE REDIM REM RESET RESTORE RESUME RESUME RETURN RGB RGBA RIGHT RMDIR RND RSET RTRIM RUN SADD SCOPE SCREEN SCREEN SCREENCONTROL SCREENCOPY SCREENEVENT SCREENGLPROC SCREENINFO SCREENLIST SCREENLOCK SCREENPTR SCREENRES SCREENSET SCREENSYNC SCREENUNLOCK SCRN SECOND SEEK SEEK SELECT SETDATE SETENVIRON SETMOUSE SETTIME SGN SHARED SHELL SHL SHORT SHR SIN SINGLE SIZEOF SLEEP SPACE SPC SQR STATIC STDCALL STEP STICK STOP STR STRIG STRING STRPTR SUB SWAP SYSTEM TAB TAN THEN THIS THREADCALL THREADCREATE THREADDETACH THREADWAIT TIME TIMER TIMESERIAL TIMEVALUE TO TRANS TRIM TRUE TYPE TYPEOF UBOUND UBYTE UCASE UINTEGER ULONG ULONGINT UNION UNLOCK UNSIGNED UNTIL USHORT USING VA_ARG VA_FIRST VA_NEXT VAL VALINT VALLNG VALUINT VALULNG VAR VARPTR VIEW VIEW VIRTUAL WAIT WBIN WCHR WEEKDAY WEEKDAYNAME WEND WHEX WHILE WIDTH WINDOW WINDOWTITLE WINPUT WITH WOCT WRITE WSPACE WSTR WSTRING XOR YEAR ZSTRING </Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">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</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="FF00FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" fontSize="12" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" fontSize="14" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" fontSize="14" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="1" fontSize="14" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" 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="800040" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="0000FF" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="FF0000" bgColor="FFFFFF" fontName="Consolas" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" 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>

Return to “General”

Who is online

Users browsing this forum: Baidu [Spider] and 6 guests